From 4b7f49082f80cf92475c999f8c42e112a13aed6a Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 28 Sep 2011 14:47:58 +0200 Subject: flashsv: return more meaningful error value --- libavcodec/flashsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/flashsv.c') diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index b1424a5586..c99c21c719 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -366,7 +366,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data, if (s->color_depth != 0 && s->color_depth != 2) { av_log(avctx, AV_LOG_ERROR, "%dx%d invalid color depth %d\n", i, j, s->color_depth); - return -1; + return AVERROR_INVALIDDATA; } if (has_diff) { -- cgit v1.2.3