[FFmpeg-cvslog] r9881 - trunk/ffmpeg.c
michael
subversion
Sat Aug 4 01:25:03 CEST 2007
Author: michael
Date: Sat Aug 4 01:25:03 2007
New Revision: 9881
Log:
drop non keyframes before the first keyframe for stream copy
Modified:
trunk/ffmpeg.c
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Sat Aug 4 01:25:03 2007
@@ -1210,6 +1210,9 @@ static int output_packet(AVInputStream *
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 */
More information about the ffmpeg-cvslog
mailing list