diff options
author | Alex Converse <alex.converse@gmail.com> | 2012-03-04 17:53:50 -0800 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2012-03-05 11:22:11 -0800 |
commit | 3574a85ce57366ba7429edef93d5cad8640fb68c (patch) | |
tree | 963585651b226922412af44096e328ea36273d36 /libavcodec/h261dec.c | |
parent | b70feb405386cda5ea7a7d2a9921a7f2f17976a4 (diff) | |
download | ffmpeg-3574a85ce57366ba7429edef93d5cad8640fb68c.tar.gz |
Replace computations of remaining bits with calls to get_bits_left().
Diffstat (limited to 'libavcodec/h261dec.c')
-rw-r--r-- | libavcodec/h261dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index dd1931d6da..3b44e81654 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -265,7 +265,7 @@ static int h261_decode_mb(H261Context *h){ while( h->mba_diff == MBA_STUFFING ); // stuffing if ( h->mba_diff < 0 ){ - if ( get_bits_count(&s->gb) + 7 >= s->gb.size_in_bits ) + if (get_bits_left(&s->gb) <= 7) return SLICE_END; av_log(s->avctx, AV_LOG_ERROR, "illegal mba at %d %d\n", s->mb_x, s->mb_y); |