]> git.sesse.net Git - vlc/commitdiff
Fixed object type parsing in mpeg4 audio.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 20 Apr 2009 20:10:18 +0000 (22:10 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 20 Apr 2009 20:10:18 +0000 (22:10 +0200)
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;
 }