On 19/04/15 13:28, Federico Tomassetti wrote:
> Bug-Id: CID 1257782
> ---
>  libavcodec/aacpsy.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavcodec/aacpsy.c b/libavcodec/aacpsy.c
> index 6c6e573..dd4f8b4 100644
> --- a/libavcodec/aacpsy.c
> +++ b/libavcodec/aacpsy.c
> @@ -298,6 +298,9 @@ static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
>      const float num_bark   = calc_bark((float)bandwidth);
>  
>      ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
> +    if (!ctx->model_priv_data)
> +        return AVERROR(ENOMEM);
> +
>      pctx = (AacPsyContext*) ctx->model_priv_data;
>  
>      pctx->chan_bitrate = chan_bitrate;
> 

The set looks fine to me.

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to