From 76bb4a9b5f5d665a2ec556336844fdc3bc51e3d1 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sun, 30 May 2010 20:21:22 +0000 Subject: Do not try to parse content or substream header of raw audio streams --- xine/ts2es.c | 15 +++++++++------ 1 file 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 ? */ -- cgit v1.2.3