aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-02-29 06:21:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-02-29 06:27:38 +0100
commit6aca18a9a0b570b61d75ef351d3ca6bb104c04db (patch)
treee1bf8ab722c45ae299c6947e7f4bc676cc80e4f7 /libavcodec
parentc2500635235d809e0c0ac526a7e13072ab7c8900 (diff)
downloadffmpeg-6aca18a9a0b570b61d75ef351d3ca6bb104c04db.tar.gz
vmnc: Fail if bpp is not recognized instead of crashing.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vmnc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index 21141fa052..ac0b8252e4 100644
--- a/libavcodec/vmnc.c
+++ b/libavcodec/vmnc.c
@@ -484,6 +484,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_PATCHWELCOME;
}
return 0;