mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/dxva2_mpeg2: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
44e8e82d34
commit
34087b0564
|
@ -139,8 +139,7 @@ static void fill_slice(AVCodecContext *avctx,
|
||||||
init_get_bits(&gb, &buffer[4], 8 * (size - 4));
|
init_get_bits(&gb, &buffer[4], 8 * (size - 4));
|
||||||
|
|
||||||
slice->wQuantizerScaleCode = get_bits(&gb, 5);
|
slice->wQuantizerScaleCode = get_bits(&gb, 5);
|
||||||
while (get_bits1(&gb))
|
skip_1stop_8data_bits(&gb);
|
||||||
skip_bits(&gb, 8);
|
|
||||||
|
|
||||||
slice->wMBbitOffset = 4 * 8 + get_bits_count(&gb);
|
slice->wMBbitOffset = 4 * 8 + get_bits_count(&gb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue