Mercurial > libavformat.hg
changeset 3342:a25db3f275d2 libavformat
set correct duration when using b frames
author | bcoudurier |
---|---|
date | Sun, 25 May 2008 01:22:06 +0000 |
parents | 13333599b04b |
children | 201853ef633e |
files | flvenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flvenc.c Sat May 24 21:44:29 2008 +0000 +++ b/flvenc.c Sun May 25 01:22:06 2008 +0000 @@ -306,7 +306,7 @@ 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;