]> git.sesse.net Git - vlc/blobdiff - modules/packetizer/mpeg4audio.c
Fixed object type parsing in mpeg4 audio.
[vlc] / modules / packetizer / mpeg4audio.c
index aebdc7c3f7ac18f90a02bb0bd32c57ce822f12e5..e0f99d4012b03c44022dc109dc1c67d58988f02c 100644 (file)
@@ -498,8 +498,8 @@ static int Mpeg4GASpecificConfig( mpeg4_cfg_t *p_cfg, bs_t *s )
 static int Mpeg4ReadAudioObjectType( bs_t *s )
 {
     int i_type = bs_read( s, 5 );
-    if( i_type == 0x1f )
-        i_type += bs_read( s, 6 );
+    if( i_type == 31 )
+        i_type = 32 + bs_read( s, 6 );
     return i_type;
 }