Commit 74912d2f authored by Jon Lech Johansen's avatar Jon Lech Johansen

* ./modules/demux/mpeg: DTS support.

parent 1d5118e0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* control the pace of reading. * control the pace of reading.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * Copyright (C) 1999, 2000 VideoLAN
* $Id: input_ext-intf.h,v 1.85 2003/02/08 22:20:28 massiot Exp $ * $Id: input_ext-intf.h,v 1.86 2003/03/09 23:39:05 jlj Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#define REQUESTED_MPEG 1 #define REQUESTED_MPEG 1
#define REQUESTED_A52 2 #define REQUESTED_A52 2
#define REQUESTED_LPCM 3 #define REQUESTED_LPCM 3
#define REQUESTED_DTS 4
#define REQUESTED_NOAUDIO 255 #define REQUESTED_NOAUDIO 255
#define OFFSETTOTIME_MAX_SIZE 10 #define OFFSETTOTIME_MAX_SIZE 10
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ps.c : Program Stream input module for vlc * ps.c : Program Stream input module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2001 VideoLAN * Copyright (C) 2000-2001 VideoLAN
* $Id: ps.c,v 1.8 2003/03/03 14:19:09 massiot Exp $ * $Id: ps.c,v 1.9 2003/03/09 23:39:05 jlj Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -223,6 +223,20 @@ static int Activate( vlc_object_t * p_this ) ...@@ -223,6 +223,20 @@ static int Activate( vlc_object_t * p_this )
} }
break; break;
case VLC_FOURCC('d','t','s',' '):
case VLC_FOURCC('d','t','s','b'):
if( config_GetInt( p_input, "audio-channel" )
== ((p_es->i_id & 0x700) >> 8) ||
( config_GetInt( p_input, "audio-channel" ) < 0
&& !((p_es->i_id & 0x700) >> 8) ) )
switch( config_GetInt( p_input, "audio-type" ) )
{
case -1:
case REQUESTED_DTS:
input_SelectES( p_input, p_es );
}
break;
case VLC_FOURCC('a','5','2',' '): case VLC_FOURCC('a','5','2',' '):
case VLC_FOURCC('a','5','2','b'): case VLC_FOURCC('a','5','2','b'):
if( config_GetInt( p_input, "audio-channel" ) if( config_GetInt( p_input, "audio-channel" )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* system.c: helper module for TS, PS and PES management * system.c: helper module for TS, PS and PES management
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: system.c,v 1.10 2003/02/08 19:10:21 massiot Exp $ * $Id: system.c,v 1.11 2003/03/09 23:39:05 jlj Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr> * Michel Lespinasse <walken@via.ecp.fr>
...@@ -875,6 +875,24 @@ static es_descriptor_t * ParsePS( input_thread_t * p_input, ...@@ -875,6 +875,24 @@ static es_descriptor_t * ParsePS( input_thread_t * p_input,
case REQUESTED_MPEG: case REQUESTED_MPEG:
input_SelectES( p_input, p_es ); input_SelectES( p_input, p_es );
} }
#endif
}
else if( (i_id & 0xF8FF) == 0x88BD )
{
p_es->i_fourcc = VLC_FOURCC('d','t','s','b');
p_es->i_cat = AUDIO_ES;
#ifdef AUTO_SPAWN
if( !p_input->stream.b_seekable )
if( config_GetInt( p_input, "audio-channel" )
== ((p_es->i_id & 0x700) >> 8) ||
( config_GetInt( p_input, "audio-channel" ) < 0
&& !((p_es->i_id & 0x700) >> 8)) )
switch( config_GetInt( p_input, "audio-type" ) )
{
case -1:
case REQUESTED_DTS:
input_SelectES( p_input, p_es );
}
#endif #endif
} }
else if( (i_id & 0xF0FF) == 0x80BD ) else if( (i_id & 0xF0FF) == 0x80BD )
......
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