diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 18:28:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 18:28:00 +0100 |
commit | c882b62d14f6a8a11dece85d7a847b6d4ffc2325 (patch) | |
tree | c9a67329fc527e07825994b32157ad5954551776 | |
parent | f4d3127197478c8146df482e722ceb9a7a337805 (diff) | |
download | ffmpeg-c882b62d14f6a8a11dece85d7a847b6d4ffc2325.tar.gz |
avcodec/svq1dec: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/svq1dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 5193798ea4..6c8bfc4e48 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; |