aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ituh263dec.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/ituh263dec.c
parentb70feb405386cda5ea7a7d2a9921a7f2f17976a4 (diff)
downloadffmpeg-3574a85ce57366ba7429edef93d5cad8640fb68c.tar.gz
Replace computations of remaining bits with calls to get_bits_left().
Diffstat (limited to 'libavcodec/ituh263dec.c')
-rw-r--r--libavcodec/ituh263dec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 20c2d7c23f..f52ac7abfc 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -852,8 +852,8 @@ end:
{
int v= show_bits(&s->gb, 16);
- if(get_bits_count(&s->gb) + 16 > s->gb.size_in_bits){
- v>>= get_bits_count(&s->gb) + 16 - s->gb.size_in_bits;
+ if (get_bits_left(&s->gb) < 16) {
+ v >>= 16 - get_bits_left(&s->gb);
}
if(v==0)