avcodec/svq1dec: Use skip_1stop_8data_bits()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Oct 2013 17:28:00 +0000 (18:28 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Oct 2013 17:28:00 +0000 (18:28 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/svq1dec.c

index 5193798..6c8bfc4 100644 (file)
@@ -593,8 +593,8 @@ static int svq1_decode_frame_header(AVCodecContext *avctx, AVFrame *frame)
         skip_bits1(bitbuf);
         skip_bits(bitbuf, 2);
 
-        while (get_bits1(bitbuf))
-            skip_bits(bitbuf, 8);
+        if (skip_1stop_8data_bits(bitbuf) < 0)
+            return AVERROR_INVALIDDATA;
     }
 
     s->width  = width;