summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-05-30 20:21:22 +0000
committerphintuka <phintuka>2010-05-30 20:21:22 +0000
commit76bb4a9b5f5d665a2ec556336844fdc3bc51e3d1 (patch)
treec97ca874b21a91150a21e673bf0aa4e0ac7b2bfc
parent39fa2b62a984c35e91c57da7f8271f5a5eff7bc8 (diff)
downloadxineliboutput-76bb4a9b5f5d665a2ec556336844fdc3bc51e3d1.tar.gz
xineliboutput-76bb4a9b5f5d665a2ec556336844fdc3bc51e3d1.tar.bz2
Do not try to parse content or substream header of raw audio streams
-rw-r--r--xine/ts2es.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/xine/ts2es.c b/xine/ts2es.c
index e3cbcad9..8be02ab7 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.11 2010-05-20 13:20:56 phintuka Exp $
+ * $Id: ts2es.c,v 1.12 2010-05-30 20:21:22 phintuka Exp $
*
*/
@@ -69,11 +69,14 @@ static void ts2es_parse_pes(ts2es_t *this)
if (pes_pid != PRIVATE_STREAM1)
return;
- /* RAW AC3 audio ? -> do nothing */
- if (this->stream_type == STREAM_AUDIO_AC3) {
- this->xine_buf_type |= BUF_AUDIO_A52;
- this->buf->type = this->xine_buf_type;
- return;
+ /* RAW audio ? -> do nothing */
+ switch (this->stream_type) {
+ case STREAM_AUDIO_AC3:
+ case STREAM_AUDIO_EAC3:
+ case STREAM_AUDIO_AAC:
+ case STREAM_AUDIO_DTS:
+ return;
+ default:;
}
/* AC3 syncword in beginning of PS1 payload ? */