4xm: return a proper error code.

This commit is contained in:
Anton Khirnov 2013-12-17 08:33:55 +01:00
parent 060667195e
commit fffca3d278

View File

@ -928,7 +928,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
if (avctx->extradata_size != 4 || !avctx->extradata) { if (avctx->extradata_size != 4 || !avctx->extradata) {
av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n"); av_log(avctx, AV_LOG_ERROR, "extradata wrong or missing\n");
return 1; return AVERROR_INVALIDDATA;
} }
f->version = AV_RL32(avctx->extradata) >> 16; f->version = AV_RL32(avctx->extradata) >> 16;