summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/dxva2_mpeg2.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/dxva2_mpeg2.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/dxva2_mpeg2.c')
-rw-r--r--ffmpeg/libavcodec/dxva2_mpeg2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/dxva2_mpeg2.c b/ffmpeg/libavcodec/dxva2_mpeg2.c
index 542f17c..1827dd5 100644
--- a/ffmpeg/libavcodec/dxva2_mpeg2.c
+++ b/ffmpeg/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);
}