summaryrefslogtreecommitdiff
path: root/libavcodec/dxva2_mpeg2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-30 18:28:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-10-30 18:28:00 +0100
commit34087b05642a95530818be56fc7d7003e9ce51a0 (patch)
tree2839fe3a5207de227ac26ee0a1d035db66f361ac /libavcodec/dxva2_mpeg2.c
parent44e8e82d347fe2c19b84b74f419aeae73f4347ce (diff)
avcodec/dxva2_mpeg2: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxva2_mpeg2.c')
-rw-r--r--libavcodec/dxva2_mpeg2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c
index 542f17cbfe..1827dd526f 100644
--- a/libavcodec/dxva2_mpeg2.c
+++ b/libavcodec/dxva2_mpeg2.c
@@ -139,8 +139,7 @@ static void fill_slice(AVCodecContext *avctx,
init_get_bits(&gb, &buffer[4], 8 * (size - 4));
slice->wQuantizerScaleCode = get_bits(&gb, 5);
- while (get_bits1(&gb))
- skip_bits(&gb, 8);
+ skip_1stop_8data_bits(&gb);
slice->wMBbitOffset = 4 * 8 + get_bits_count(&gb);
}