diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-07 16:49:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-07 19:59:00 +0200 |
commit | 2d0b4bc4cf92dd961dbafbff3f1f4a9e08a9565b (patch) | |
tree | e7ceaed44a4234de0cb1e73f64ee721e8d912809 /libavcodec/rv34.c | |
parent | 6c249392fa646f509823d5ce12d0c2515d8f31f2 (diff) | |
download | ffmpeg-streaming-2d0b4bc4cf92dd961dbafbff3f1f4a9e08a9565b.zip ffmpeg-streaming-2d0b4bc4cf92dd961dbafbff3f1f4a9e08a9565b.tar.gz |
rv34: Fix check_slice_end() handling of 0 bits left case
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index afde77b..1af67ee 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; } |