[vlc-devel] commit: Fixed object type parsing in mpeg4 audio. (Laurent Aimar )

git version control git at videolan.org
Mon Apr 20 22:10:44 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Apr 20 22:10:18 2009 +0200| [41971be0fc42c3dfbe2c4939d37c26c263ec83f5] | committer: Laurent Aimar 

Fixed object type parsing in mpeg4 audio.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41971be0fc42c3dfbe2c4939d37c26c263ec83f5
---

 modules/packetizer/mpeg4audio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index aebdc7c..e0f99d4 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -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;
 }
 




More information about the vlc-devel mailing list