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

drop non keyframes before the first keyframe for stream copy

Originally committed as revision 9881 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-08-03 23:25:03 +00:00
parent 4efd6f58b6
commit 7cacf1e86a

View File

@ -1210,6 +1210,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
AVPacket opkt;
av_init_packet(&opkt);
if (!ost->frame_number && !(pkt->flags & PKT_FLAG_KEY))
continue;
/* no reencoding needed : output the packet directly */
/* force the input stream PTS */