[FFmpeg-devel] [PATCH 3/3] Increase ffmpeg video encoding buffer size to permit encoding of DPX images

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Mar 26 08:54:11 CET 2011



On 26 Mar 2011, at 08:02, Peter Ross <pross at xvid.org> wrote:

> The header generated by the DPX encoder is 0x680 bytes.
> ---
> ffmpeg.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 6f74e61..f0f6f50 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -2243,7 +2243,7 @@ static int transcode(AVFormatContext **output_files,
>         }
>         if(codec->codec_type == AVMEDIA_TYPE_VIDEO){
>             int size= codec->width * codec->height;
> -            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 200);
> +            bit_buffer_size= FFMAX(bit_buffer_size, 6*size + 0x680);

Should probably add a comment saying where the numbers come from.



More information about the ffmpeg-devel mailing list