Commit a5e382ad authored by Paul B Mahol's avatar Paul B Mahol

4xm: return error code if decode_init() failed

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent cf5f4c51
......@@ -941,7 +941,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
if (avctx->extradata_size != 4 || !avctx->extradata) {
av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
return 1;
return AVERROR_INVALIDDATA;
}
if((avctx->width % 16) || (avctx->height % 16)) {
av_log(avctx, AV_LOG_ERROR, "unsupported width/height\n");
......
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