[FFmpeg-cvslog] flashsv: return more meaningful error value

Diego Biurrun git at videolan.org
Wed Oct 12 05:51:15 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Sep 28 14:47:58 2011 +0200| [4b7f49082f80cf92475c999f8c42e112a13aed6a] | committer: Diego Biurrun

flashsv: return more meaningful error value

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b7f49082f80cf92475c999f8c42e112a13aed6a
---

 libavcodec/flashsv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index b1424a5..c99c21c 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) {



More information about the ffmpeg-cvslog mailing list