]> git.sesse.net Git - vlc/commitdiff
* ./modules/codec/dts.c: minor fix.
authorJon Lech Johansen <jlj@videolan.org>
Mon, 10 Mar 2003 08:23:45 +0000 (08:23 +0000)
committerJon Lech Johansen <jlj@videolan.org>
Mon, 10 Mar 2003 08:23:45 +0000 (08:23 +0000)
modules/codec/dts.c

index e1cbd7029e2d3758aa991b557e8c88bf5f451069..f3fd0f10fe9a7b9e6111bc5c48acaecc60d79a24 100644 (file)
@@ -2,7 +2,7 @@
  * dts.c: DTS basic parser
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: dts.c,v 1.1 2003/03/09 20:07:47 jlj Exp $
+ * $Id: dts.c,v 1.2 2003/03/10 08:23:45 jlj Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *
@@ -400,7 +400,16 @@ static int SyncInfo( const byte_t * p_buf, unsigned int * pi_channels,
             break;
 
         default:
-            return( 0 );
+            if( i_audio_mode <= 63 )
+            {
+                /* User defined */
+                *pi_channels = 0; 
+            }
+            else
+            {
+                return( 0 );
+            }
+            break;
     }
 
     if( i_sample_rate >= sizeof( ppi_dts_samplerate ) /