Mercurial > mplayer.hg
changeset 22048:5e843ca8c6a5
fix audio type when ts_detect_streams detects that a private1 stream is actually ac3
author | nicodvb |
---|---|
date | Mon, 29 Jan 2007 22:49:14 +0000 |
parents | 3c88917db443 |
children | cb80d1bb7ca8 |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Mon Jan 29 19:38:31 2007 +0000 +++ b/libmpdemux/demux_ts.c Mon Jan 29 22:49:14 2007 +0000 @@ -1008,6 +1008,9 @@ 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;