Do not skip frames until the first keyframe when stream copying but
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2008 03:11:36 +0000 (03:11 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 16 Dec 2008 03:11:36 +0000 (03:11 +0000)
no starttime is set.
Fixes at least -vcodec copy with VS2k5DebugDemo-01-partial.avi.

Originally committed as revision 16159 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index a6f66c7e1cea0831e1a186d72082ff60a8d116ae..a4765f5beedd9b42bbde5ae139efc36fcf12d795 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1353,7 +1353,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
                         AVPacket opkt;
                         av_init_packet(&opkt);
 
-                        if (!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY))
+                        if ((!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY)) && start_time)
                             continue;
 
                         /* no reencoding needed : output the packet directly */