changeset 22049:cb80d1bb7ca8

5l, check that the codec type detected by ts_detect_streams() is actually audio before fixing it in the array
author nicodvb
date Mon, 29 Jan 2007 23:10:01 +0000
parents 5e843ca8c6a5
children 1bd2bb5369ce
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Mon Jan 29 22:49:14 2007 +0000
+++ b/libmpdemux/demux_ts.c	Mon Jan 29 23:10:01 2007 +0000
@@ -1010,7 +1010,7 @@
 	{
 		ES_stream_t *es = priv->ts.pids[params.apid]; 
 		
-		if(!IS_AUDIO(es->type) && !IS_AUDIO(es->subtype)) es->subtype = params.atype;
+		if(!IS_AUDIO(es->type) && !IS_AUDIO(es->subtype) && IS_AUDIO(params.atype)) es->subtype = params.atype;
 		ts_add_stream(demuxer, priv->ts.pids[params.apid]);
 		sh_audio = priv->ts.streams[params.apid].sh;
 		demuxer->audio->id = priv->ts.streams[params.apid].id;