mirror of https://git.ffmpeg.org/ffmpeg.git
rv34: Fix check_slice_end() handling of 0 bits left case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6c249392fa
commit
2d0b4bc4cf
|
@ -1337,7 +1337,7 @@ static int check_slice_end(RV34DecContext *r, MpegEncContext *s)
|
||||||
if(r->s.mb_skip_run > 1)
|
if(r->s.mb_skip_run > 1)
|
||||||
return 0;
|
return 0;
|
||||||
bits = get_bits_left(&s->gb);
|
bits = get_bits_left(&s->gb);
|
||||||
if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)))
|
if(bits <= 0 || (bits < 8 && !show_bits(&s->gb, bits)))
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue