Commit 18802942 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Use skip_1stop_8data_bits()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f0315318
......@@ -1639,9 +1639,8 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
}
/* extra slice info */
while (get_bits1(&s->gb) != 0) {
skip_bits(&s->gb, 8);
}
if (skip_1stop_8data_bits(&s->gb) < 0)
return AVERROR_INVALIDDATA;
s->mb_x = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment