[MPlayer-dev-eng] [PATCH] Audio track switching not working for DVB TS
KS Ng - dmbth
hk.dmbth at gmail.com
Sun Sep 26 13:26:48 CEST 2010
Hello,
This is a patch which fixes an issue that switching of audio track is
not working when playing Hong Kong DVB TS broadcast or TS files recorded
from such broadcast containing multiple audio tracks.
Thanks for reviewing!
KS Ng
Index: libmpdemux/demux_ts.c
===================================================================
--- libmpdemux/demux_ts.c (revision 32358)
+++ libmpdemux/demux_ts.c (working copy)
@@ -56,6 +56,7 @@
#define TYPE_AUDIO 1
#define TYPE_VIDEO 2
+#define TYPE_SUB 3
int ts_prog;
int ts_keep_broken=0;
@@ -409,9 +410,9 @@
case SPU_PGS:
sh->type = 'p'; break;
}
- priv->ts.streams[es->pid].id = priv->last_aid;
+ priv->ts.streams[es->pid].id = priv->last_sid;
priv->ts.streams[es->pid].sh = sh;
- priv->ts.streams[es->pid].type = TYPE_AUDIO;
+ priv->ts.streams[es->pid].type = TYPE_SUB;
priv->last_sid++;
}
}
More information about the MPlayer-dev-eng
mailing list