[FFmpeg-cvslog] avcodec/dxva2_mpeg2: Use skip_1stop_8data_bits()

Michael Niedermayer git at videolan.org
Wed Oct 30 18:35:33 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 30 18:28:00 2013 +0100| [34087b05642a95530818be56fc7d7003e9ce51a0] | committer: Michael Niedermayer

avcodec/dxva2_mpeg2: Use skip_1stop_8data_bits()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34087b05642a95530818be56fc7d7003e9ce51a0
---

 libavcodec/dxva2_mpeg2.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c
index 542f17c..1827dd5 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);
 }



More information about the ffmpeg-cvslog mailing list