Commit 814c882d authored by Jon Lech Johansen's avatar Jon Lech Johansen

* ./modules/codec/dts.c: minor fix.

parent 0c1fdd96
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* dts.c: DTS basic parser * dts.c: DTS basic parser
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* *
...@@ -400,8 +400,17 @@ static int SyncInfo( const byte_t * p_buf, unsigned int * pi_channels, ...@@ -400,8 +400,17 @@ static int SyncInfo( const byte_t * p_buf, unsigned int * pi_channels,
break; break;
default: default:
if( i_audio_mode <= 63 )
{
/* User defined */
*pi_channels = 0;
}
else
{
return( 0 ); return( 0 );
} }
break;
}
if( i_sample_rate >= sizeof( ppi_dts_samplerate ) / if( i_sample_rate >= sizeof( ppi_dts_samplerate ) /
sizeof( ppi_dts_samplerate[0] ) ) sizeof( ppi_dts_samplerate[0] ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment