[MPlayer-users] switch_audio on *.ts files

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Jun 21 14:05:39 CEST 2009


On Thu, Jun 18, 2009 at 03:59:08AM +0200, RVM wrote:
> BTW, there's another problem. Initially mplayer reports this:
> 
> ID_AID_1403_LANG=eng
> ID_AID_1402_LANG=spa
> 
> But some lines below says this:
> 
> ID_AID_1403_LANG=spa
> ID_AID_1402_LANG=spa
> 
> which is wrong.

The later values are uninitialized data from ts_parse.
E.g. this fixes it, but it still seems all wrong since the
information e.g. never seems to reach the ES_stream struct when
ts_add_stream is called - the code for that seems to come only after
that and it only sets it on the "es" variable, not the "tss".
Index: libmpdemux/demux_ts.c
===================================================================
--- libmpdemux/demux_ts.c       (revision 29378)
+++ libmpdemux/demux_ts.c       (working copy)
@@ -2722,6 +2722,7 @@
                rap_flag = 0;
                mp4_dec = NULL;
                es->is_synced = 0;
+               es->lang[0] = 0;
                si = NULL;
 
                junk = priv->ts.packet_size - TS_PACKET_SIZE;



More information about the MPlayer-users mailing list