mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 06:11:10 +00:00
fix audio type when ts_detect_streams detects that a private1 stream is actually ac3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22066 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
88047d97c5
commit
9b9485027e
@ -1008,6 +1008,9 @@ static demuxer_t *demux_open_ts(demuxer_t * demuxer)
|
||||
|
||||
if(params.atype != UNKNOWN)
|
||||
{
|
||||
ES_stream_t *es = priv->ts.pids[params.apid];
|
||||
|
||||
if(!IS_AUDIO(es->type) && !IS_AUDIO(es->subtype)) 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