diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-12-17 08:33:55 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-01-06 08:13:50 +0100 |
commit | fffca3d278c2a2422c2f61f21c5a9d5f690d328e (patch) | |
tree | 5d4ff5b444027718c9251b1333c7a3114392aa38 /libavcodec/4xm.c | |
parent | 060667195e6e6bc0fa63ce13c47e23aabe70d122 (diff) | |
download | ffmpeg-fffca3d278c2a2422c2f61f21c5a9d5f690d328e.tar.gz |
4xm: return a proper error code.
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r-- | libavcodec/4xm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c index 09336b0737..3ae19182ea 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -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; |