[FFmpeg-cvslog] 4xm: return a proper error code.
Anton Khirnov
git at videolan.org
Mon Jan 6 13:37:32 CET 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Dec 17 08:33:55 2013 +0100| [fffca3d278c2a2422c2f61f21c5a9d5f690d328e] | committer: Anton Khirnov
4xm: return a proper error code.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fffca3d278c2a2422c2f61f21c5a9d5f690d328e
---
libavcodec/4xm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 09336b0..3ae1918 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;
More information about the ffmpeg-cvslog
mailing list