On Tue, May 12, 2015 at 05:55:35PM +0200, Luca Barbato wrote:
> --- a/libavcodec/libxvid.c
> +++ b/libavcodec/libxvid.c
> @@ -276,6 +276,8 @@ static int xvid_strip_vol_header(AVCodecContext *avctx, 
> AVPacket *pkt,
>          /* We need to store the header, so extract it */
>          if (!avctx->extradata) {
>              avctx->extradata = av_malloc(vo_len);
> +            if (!avctx->extradata)
> +                return AVERROR(ENOMEM);

This is not done during init, but during encode_frame(), so I think it
needs some more postprocessing.

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

Reply via email to