From 09a76db8e646a1ab5232b5cc178acc2b1ee19218 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 16 Dec 2008 03:11:36 +0000 Subject: [PATCH] Do not skip frames until the first keyframe when stream copying but 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg.c b/ffmpeg.c index a6f66c7e1..a4765f5be 100644 --- 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 */ -- 2.34.1