1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Michael Niedermayer 2008-12-16 03:11:36 +00:00
parent 2169b79c2a
commit 09a76db8e6

View File

@ -1353,7 +1353,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
AVPacket opkt; AVPacket opkt;
av_init_packet(&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; continue;
/* no reencoding needed : output the packet directly */ /* no reencoding needed : output the packet directly */