flashsv: return more meaningful error value
authorDiego Biurrun <diego@biurrun.de>
Wed, 28 Sep 2011 12:47:58 +0000 (14:47 +0200)
committerDiego Biurrun <diego@biurrun.de>
Tue, 11 Oct 2011 12:28:23 +0000 (14:28 +0200)
libavcodec/flashsv.c

index b1424a5..c99c21c 100644 (file)
@@ -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) {