diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index afde77b93f..1af67eecdb 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1337,7 +1337,7 @@ static int check_slice_end(RV34DecContext *r, MpegEncContext *s) if(r->s.mb_skip_run > 1) return 0; 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 0; }