aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2012-03-04 17:53:50 -0800
committerAlex Converse <alex.converse@gmail.com>2012-03-05 11:22:11 -0800
commit3574a85ce57366ba7429edef93d5cad8640fb68c (patch)
tree963585651b226922412af44096e328ea36273d36 /libavcodec/h263dec.c
parentb70feb405386cda5ea7a7d2a9921a7f2f17976a4 (diff)
downloadffmpeg-3574a85ce57366ba7429edef93d5cad8640fb68c.tar.gz
Replace computations of remaining bits with calls to get_bits_left().
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index 86282fdbd1..5f35bf8852 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -650,7 +650,7 @@ retry:
ret = decode_slice(s);
while(s->mb_y<s->mb_height){
if(s->msmpeg4_version){
- if(s->slice_height==0 || s->mb_x!=0 || (s->mb_y%s->slice_height)!=0 || get_bits_count(&s->gb) > s->gb.size_in_bits)
+ if(s->slice_height==0 || s->mb_x!=0 || (s->mb_y%s->slice_height)!=0 || get_bits_left(&s->gb)<0)
break;
}else{
int prev_x=s->mb_x, prev_y=s->mb_y;