summaryrefslogtreecommitdiff
path: root/libavcodec/yop.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-15 20:49:17 +0100
committerAnton Khirnov <anton@khirnov.net>2013-01-06 13:31:39 +0100
commit01b60883ea3af2794c4279bfe7f01c31e7f55a61 (patch)
treea0315c8491f221bf6c7c890f37f0b5d89bbdd1f2 /libavcodec/yop.c
parent11c3f2047e94719765dae8b19a8023689056e767 (diff)
yop: use a meaningful error code.
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r--libavcodec/yop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c
index 0b9cdfebe2..69700bd266 100644
--- a/libavcodec/yop.c
+++ b/libavcodec/yop.c
@@ -86,7 +86,7 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
if (avctx->width & 1 || avctx->height & 1 ||
av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) {
av_log(avctx, AV_LOG_ERROR, "YOP has invalid dimensions\n");
- return -1;
+ return AVERROR_INVALIDDATA;
}
avctx->pix_fmt = AV_PIX_FMT_PAL8;