Commit fffca3d2 authored by Anton Khirnov's avatar Anton Khirnov

4xm: return a proper error code.

parent 06066719
......@@ -928,7 +928,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;
}
f->version = AV_RL32(avctx->extradata) >> 16;
......
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