Commit 2b97ac12 authored by bcoudurier's avatar bcoudurier

set correct duration when using b frames

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13372 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c1e38c4
...@@ -306,7 +306,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -306,7 +306,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
put_byte(pb, enc->extradata_size ? enc->extradata[0] : 0); put_byte(pb, enc->extradata_size ? enc->extradata[0] : 0);
put_buffer(pb, pkt->data, size); put_buffer(pb, pkt->data, size);
put_be32(pb,size+flags_size+11); // previous tag 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); put_flush_packet(pb);
return 0; 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