Mercurial > libavcodec.hg
comparison mpeg4audio.c @ 10535:95f3daa991a2 libavcodec
Use get_bits_left() instead of size_in_bits - get_bits_count().
author | rbultje |
---|---|
date | Mon, 16 Nov 2009 17:42:43 +0000 |
parents | 33890a382b36 |
children | c7ed26e2011f |
comparison
equal
deleted
inserted
replaced
10534:4cd2ef16fb63 | 10535:95f3daa991a2 |
---|---|
30 * @param[in] c MPEG4AudioConfig structure to fill | 30 * @param[in] c MPEG4AudioConfig structure to fill |
31 * @return on success 0 is returned, otherwise a value < 0 | 31 * @return on success 0 is returned, otherwise a value < 0 |
32 */ | 32 */ |
33 static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c) | 33 static int parse_config_ALS(GetBitContext *gb, MPEG4AudioConfig *c) |
34 { | 34 { |
35 if (gb->size_in_bits - get_bits_count(gb) < 112) | 35 if (get_bits_left(gb) < 112) |
36 return -1; | 36 return -1; |
37 | 37 |
38 if (get_bits_long(gb, 32) != MKBETAG('A','L','S','\0')) | 38 if (get_bits_long(gb, 32) != MKBETAG('A','L','S','\0')) |
39 return -1; | 39 return -1; |
40 | 40 |