Browse Source

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>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
6aca18a9a0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vmnc.c

+ 1
- 0
libavcodec/vmnc.c View File

@@ -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;


Loading…
Cancel
Save