mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avcodec/vc1_block: Use av_clip_uintp2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ec908ce427
commit
9914502264
@ -930,7 +930,7 @@ static int vc1_decode_intra_block(VC1Context *v, int16_t block[64], int n,
|
||||
s->bdsp.clear_block(block);
|
||||
|
||||
/* XXX: Guard against dumb values of mquant */
|
||||
mquant = (mquant < 1) ? 0 : ((mquant > 31) ? 31 : mquant);
|
||||
mquant = av_clip_uintp2(mquant, 5);
|
||||
|
||||
/* Set DC scale - y and c use the same */
|
||||
s->y_dc_scale = s->y_dc_scale_table[mquant];
|
||||
|
Loading…
x
Reference in New Issue
Block a user