aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-28 19:00:48 -0800
committerReinhard Tartler <siretart@tauware.de>2012-02-29 21:43:20 +0100
commit1dd1ee00d54ba2a9f5d8ae2e82a22891300b6807 (patch)
tree39c6b4cb74af71f4350b4300bfa998701f2263a9
parent4493af756b8f8346b1e7671b487afc34c72bc16e (diff)
downloadffmpeg-1dd1ee00d54ba2a9f5d8ae2e82a22891300b6807.tar.gz
vmnc: return error on decode_init() failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org (cherry picked from commit 07a180972fb369bb59bf6d4f8edb4598c51e80d2) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavcodec/vmnc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index a72c507c3c..ca0ba82dcd 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;