diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-20 09:42:32 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-20 09:42:32 +0000 |
commit | a5e382ad7ffd8be810f3a614c4c447a1cd1936f2 (patch) | |
tree | a82695a783e1471142dbb2a7e5a66a58bbf0c74d /libavcodec | |
parent | cf5f4c5169639349262aa221ae485a0de188afb1 (diff) | |
download | ffmpeg-a5e382ad7ffd8be810f3a614c4c447a1cd1936f2.tar.gz |
4xm: return error code if decode_init() failed
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-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 bf0241a8f4..85795f96ee 100644 --- a/libavcodec/4xm.c +++ b/libavcodec/4xm.c @@ -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"); |