diff options
author | phintuka <phintuka> | 2010-05-20 13:20:56 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-05-20 13:20:56 +0000 |
commit | 1d481e1ce8defffe27307f834bc68a759e54f81a (patch) | |
tree | 8ae9799b320639e7c93caad6fe1d4164ad563c6d | |
parent | e316a5e7f958f85953d16d586e0f572b45cb7d84 (diff) | |
download | xineliboutput-1d481e1ce8defffe27307f834bc68a759e54f81a.tar.gz xineliboutput-1d481e1ce8defffe27307f834bc68a759e54f81a.tar.bz2 |
ts2es_init(): handle stream types detected from descriptor tags
-rw-r--r-- | xine/ts2es.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/xine/ts2es.c b/xine/ts2es.c index 8f953018..e3cbcad9 100644 --- a/xine/ts2es.c +++ b/xine/ts2es.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: ts2es.c,v 1.10 2010-03-20 23:28:33 phintuka Exp $ + * $Id: ts2es.c,v 1.11 2010-05-20 13:20:56 phintuka Exp $ * */ @@ -279,6 +279,24 @@ ts2es_t *ts2es_init(fifo_buffer_t *dst_fifo, ts_stream_type stream_type, uint st data->xine_buf_type = BUF_AUDIO_A52; break; + /* EAC3 (xine-lib > 1.1.18.1) */ +#ifdef BUF_AUDIO_EAC3 + case STREAM_AUDIO_EAC3: + data->xine_buf_type = BUF_AUDIO_EAC3; + break; +#endif + + /* DTS (PES stream 0xbd) */ + case STREAM_AUDIO_DTS: + data->xine_buf_type = BUF_AUDIO_DTS; + break; + + /* AAC (PES stream 0xbd) */ + case STREAM_AUDIO_AAC: + data->xine_buf_type = BUF_AUDIO_AAC; + break; + + default: LOGMSG("ts2es: unknown stream type 0x%x", stream_type); break; |