[FFmpeg-cvslog] r10139 - trunk/libavformat/utils.c
michael
subversion
Sat Aug 18 02:52:05 CEST 2007
Author: michael
Date: Sat Aug 18 02:52:05 2007
New Revision: 10139
Log:
When looking for the last packet in each
stream, so as to calculate the duration, don't stop
as soon as all streams have seen at least on packet.
Otherwise the duration will be shorter than it
should be. We must keep reading to the end-of-file.
patch by neilb suse de
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Sat Aug 18 02:52:05 2007
@@ -1537,14 +1537,6 @@ static void av_estimate_timings_from_pts
for(;;) {
if (read_size >= DURATION_MAX_READ_SIZE)
break;
- /* if all info is available, we can stop */
- for(i = 0;i < ic->nb_streams; i++) {
- st = ic->streams[i];
- if (st->duration == AV_NOPTS_VALUE)
- break;
- }
- if (i == ic->nb_streams)
- break;
ret = av_read_packet(ic, pkt);
if (ret != 0)
More information about the ffmpeg-cvslog
mailing list