5l, check that the codec type detected by ts_detect_streams() is actually audio before fixing it in the array

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22067 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-01-29 23:10:01 +00:00
parent 9b9485027e
commit 4d31f5e2ea
1 changed files with 1 additions and 1 deletions

View File

@ -1010,7 +1010,7 @@ static demuxer_t *demux_open_ts(demuxer_t * demuxer)
{
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;