summaryrefslogtreecommitdiff
path: root/libavcodec/vmnc.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-28 19:00:48 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-02-29 11:58:27 -0800
commit07a180972fb369bb59bf6d4f8edb4598c51e80d2 (patch)
treec916cbb870d442b5078d3d3a2a4252b06b864b30 /libavcodec/vmnc.c
parenta45a1ea52174233265a77632a3f3f40c67f3c6d6 (diff)
downloadffmpeg-07a180972fb369bb59bf6d4f8edb4598c51e80d2.tar.gz
vmnc: return error on decode_init() failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/vmnc.c')
-rw-r--r--libavcodec/vmnc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index 8cc78fa4c0..b1c4cbd1b7 100644
--- a/libavcodec/vmnc.c
+++ b/libavcodec/vmnc.c
@@ -483,6 +483,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
break;
default:
av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n", c->bpp);
+ return AVERROR_INVALIDDATA;
}
return 0;