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

set correct duration when using b frames

Originally committed as revision 13372 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-05-25 01:22:06 +00:00
parent fd83ad7f02
commit a9ee86e79b

View File

@ -306,7 +306,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
put_byte(pb, enc->extradata_size ? enc->extradata[0] : 0);
put_buffer(pb, pkt->data, size);
put_be32(pb,size+flags_size+11); // previous tag size
flv->duration = pkt->pts + pkt->duration;
flv->duration = FFMAX(flv->duration, pkt->pts + pkt->duration);
put_flush_packet(pb);
return 0;