mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 12:30:11 +01: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:
3
ffmpeg.c
3
ffmpeg.c
@@ -1210,6 +1210,9 @@ 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))
|
||||||
|
continue;
|
||||||
|
|
||||||
/* no reencoding needed : output the packet directly */
|
/* no reencoding needed : output the packet directly */
|
||||||
/* force the input stream PTS */
|
/* force the input stream PTS */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user