diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-09-28 14:47:58 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-10-11 14:28:23 +0200 |
commit | 4b7f49082f80cf92475c999f8c42e112a13aed6a (patch) | |
tree | 4fbfc1b8fb84c0231fb36e350916634b926b57b4 /libavcodec | |
parent | f9a9c8f9bc88cd34d2393311055596e649e868fb (diff) | |
download | ffmpeg-4b7f49082f80cf92475c999f8c42e112a13aed6a.tar.gz |
flashsv: return more meaningful error value
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/flashsv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |