[Ffmpeg-devel] diff patch for libavformat/movenc.c

Morten Nilsen morten
Mon Nov 21 20:32:01 CET 2005


Patrick Roberts wrote:
> --- ffmpeg/libavformat/movenc.c	6 Sep 2005 21:25:35 -0000	1.44
> +++ ffmpeg/libavformat/movenc.c	21 Nov 2005 05:56:12 -0000
> @@ -471,7 +477,7 @@
>      put_be16(pb, (track->enc->rc_buffer_size>>3)&0xFFFF);          // Buffersize DB
>  
>      put_be32(pb, FFMAX(track->enc->bit_rate, track->enc->rc_max_rate));     // maxbitrate  (FIXME should be max rate in any 1 sec window)
> -    if(track->enc->rc_max_rate != track->enc->rc_min_rate || track->enc->rc_min_rate==0)
> +    if(track->enc->rc_max_rate != track->enc->rc_min_rate || track->enc->rc_min_rate==0) 
>          put_be32(pb, 0);     // vbr
>      else
>          put_be32(pb, track->enc->rc_max_rate);     // avg bitrate

impressive :)

-- 
Morten





More information about the ffmpeg-devel mailing list