diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 21:28:00 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-30 21:28:00 +0400 |
commit | 9c7662aeba9908bf2892ba034686d5c93539b291 (patch) | |
tree | 8e30f40fc180aeed0de0dd79f9b8d906867ca949 /libavcodec/svq3.c | |
parent | c882b62d14f6a8a11dece85d7a847b6d4ffc2325 (diff) |
avcodec/svq3: Use skip_1stop_8data_bits()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index 1c8e1ecd29..a717e9d17d 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -838,8 +838,8 @@ static int svq3_decode_slice_header(AVCodecContext *avctx) skip_bits1(&h->gb); skip_bits(&h->gb, 2); - while (get_bits1(&h->gb)) - skip_bits(&h->gb, 8); + if (skip_1stop_8data_bits(&h->gb) < 0) + return AVERROR_INVALIDDATA; /* reset intra predictors and invalidate motion vector references */ if (h->mb_x > 0) { @@ -970,8 +970,8 @@ static av_cold int svq3_decode_init(AVCodecContext *avctx) /* unknown field */ skip_bits1(&gb); - while (get_bits1(&gb)) - skip_bits(&gb, 8); + if (skip_1stop_8data_bits(&gb) < 0) + return AVERROR_INVALIDDATA; s->unknown_flag = get_bits1(&gb); avctx->has_b_frames = !h->low_delay; |