diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-02-29 06:21:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-02-29 06:27:38 +0100 |
commit | 6aca18a9a0b570b61d75ef351d3ca6bb104c04db (patch) | |
tree | e1bf8ab722c45ae299c6947e7f4bc676cc80e4f7 /libavcodec/vmnc.c | |
parent | c2500635235d809e0c0ac526a7e13072ab7c8900 (diff) | |
download | ffmpeg-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/vmnc.c')
-rw-r--r-- | libavcodec/vmnc.c | 1 |
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; |