Commit a3e215cd authored by Dustin Brody's avatar Dustin Brody Committed by Anton Khirnov

svq3: propagate codec memory allocation failure in context init

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent cc73511e
......@@ -924,7 +924,10 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx)
h->b_stride = 4*s->mb_width;
ff_h264_alloc_tables(h);
if (ff_h264_alloc_tables(h) < 0) {
av_log(avctx, AV_LOG_ERROR, "svq3 memory allocation failed\n");
return AVERROR(ENOMEM);
}
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment