mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
4xm: return a proper error code.
This commit is contained in:
parent
060667195e
commit
fffca3d278
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user