[FFmpeg-devel] [PATCH] diracdec: check if reference could not be allocated

Timothy Gu timothygu99 at gmail.com
Wed May 6 00:00:39 CEST 2015


On Tue, May 5, 2015 at 2:51 PM Andreas Cadhalpun <
andreas.cadhalpun at googlemail.com> wrote:
>
> +        if (!s->ref_pics[i]) {
> +            av_log(s->avctx, AV_LOG_ERROR, "Reference could not be
> allocated\n");
> +            return -1;
> +        }
> +


AVERROR(ENOMEM)

Timothy


More information about the ffmpeg-devel mailing list