Anton Khirnov <an...@khirnov.net> writes:

> From: Peter Ross <pr...@xvid.org>
>
> The header generated by the DPX encoder is 1664 bytes.
>
> Signed-off-by: Anton Khirnov <an...@khirnov.net>
> ---
>  ffmpeg.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/ffmpeg.c b/ffmpeg.c
> index 4671bd0..4b993a5 100644
> --- a/ffmpeg.c
> +++ b/ffmpeg.c
> @@ -2252,8 +2252,9 @@ static int transcode(AVFormatContext **output_files,
>              }
>          }
>          if(codec->codec_type == AVMEDIA_TYPE_VIDEO){
> +            /* maximum video buffer size is 6-bytes per pixel, plus DPX 
> header size */
>              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 + 1664);
>          }
>      }
>  
> -- 

I hate this.

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to