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

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


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

avcodec/svq1dec: 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=c882b62d14f6a8a11dece85d7a847b6d4ffc2325
---

 libavcodec/svq1dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 5193798..6c8bfc4 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list