From a5e382ad7ffd8be810f3a614c4c447a1cd1936f2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 20 Nov 2012 09:42:32 +0000 Subject: [PATCH] 4xm: return error code if decode_init() failed Signed-off-by: Paul B Mahol --- libavcodec/4xm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.11.0