mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
vc1dec: use get_bits_long and limit the read bits to 32
get_bits should not be used with more than 25 bits. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
5dbd491eb3
commit
072756cdd2
@ -444,7 +444,7 @@ static av_cold int vc1_decode_init(AVCodecContext *avctx)
|
||||
count = avctx->extradata_size*8 - get_bits_count(&gb);
|
||||
if (count > 0) {
|
||||
av_log(avctx, AV_LOG_INFO, "Extra data: %i bits left, value: %X\n",
|
||||
count, get_bits(&gb, count));
|
||||
count, get_bits_long(&gb, FFMIN(count, 32)));
|
||||
} else if (count < 0) {
|
||||
av_log(avctx, AV_LOG_INFO, "Read %i bits in overflow\n", -count);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user