Use get_bits_left() in the sync extension check.
Originally committed as revision 22817 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
702b73bc9f
commit
37216b99e0
1 changed files with 1 additions and 2 deletions
|
|
@ -115,8 +115,7 @@ int ff_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int buf_si
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->ext_object_type != AOT_SBR) {
|
if (c->ext_object_type != AOT_SBR) {
|
||||||
int bits_left = buf_size*8 - get_bits_count(&gb);
|
while (get_bits_left(&gb) > 15) {
|
||||||
for (; bits_left > 15; bits_left--) {
|
|
||||||
if (show_bits(&gb, 11) == 0x2b7) { // sync extension
|
if (show_bits(&gb, 11) == 0x2b7) { // sync extension
|
||||||
get_bits(&gb, 11);
|
get_bits(&gb, 11);
|
||||||
c->ext_object_type = get_object_type(&gb);
|
c->ext_object_type = get_object_type(&gb);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue