mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 04:31:39 +00:00
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:
parent
9b9485027e
commit
4d31f5e2ea
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user