[vlc-devel] [PATCH] avcodec: ensure valid buffer size for avcodec_fill_audio_frame

Jean-Baptiste Kempf jb at videolan.org
Sun Nov 3 18:03:24 CET 2013


On 29 Oct, Tristan Matthews wrote :
> avcodec_fill_audio_frame will reject input buffers that are too small,
> therefore we cannot call it directly with the input buffer p_aout_buf.
> ---
>  modules/codec/avcodec/encoder.c | 41 +++++++++++++++++++++++------------------
>  1 file changed, 23 insertions(+), 18 deletions(-)
> 
> diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
> index 8d1a790..ffc53bb 100644
> --- a/modules/codec/avcodec/encoder.c
> +++ b/modules/codec/avcodec/encoder.c
> @@ -192,6 +192,13 @@ static const uint16_t mpeg4_default_non_intra_matrix[64] = {
>   23, 24, 25, 27, 28, 30, 31, 33,
>  };
>  
> +#if LIBAVUTIL_VERSION_CHECK( 51,27,2,46,100 )

Can we have a few spaces, please?

Rest is OK for me.

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list