OSDN Git Service

4xm: return a proper error code.
authorAnton Khirnov <anton@khirnov.net>
Tue, 17 Dec 2013 07:33:55 +0000 (08:33 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:13:50 +0000 (08:13 +0100)
libavcodec/4xm.c

index 09336b0..3ae1918 100644 (file)
@@ -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;