Commit a9ee86e7 authored by Baptiste Coudurier's avatar Baptiste Coudurier

set correct duration when using b frames

Originally committed as revision 13372 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent fd83ad7f
......@@ -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;
......
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