Commit 95665e73 authored by michael's avatar michael

drop non keyframes before the first keyframe for stream copy


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9881 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 145d6bbf
...@@ -1210,6 +1210,9 @@ static int output_packet(AVInputStream *ist, int ist_index, ...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment