Use get_bits_left() instead of size_in_bits - get_bits_count().
Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
830628e11c
commit
6e44ba1550
11 changed files with 21 additions and 21 deletions
|
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c)
|
||||
{
|
||||
if (gb->size_in_bits - get_bits_count(gb) < 112)
|
||||
if (get_bits_left(gb) < 112)
|
||||
return -1;
|
||||
|
||||
if (get_bits_long(gb, 32) != MKBETAG('A','L','S','\0'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue