[MPlayer-dev-eng] [PATCH] Default to the first found ES in MPEG TS
Yue Shi Lai
ylai at users.sourceforge.net
Fri Jul 23 22:50:49 CEST 2010
Hi,
I found that the logic in libmpdemux/demux_ts.c, which by default choses
the _last_ ES (if no PID is requested, it just loop through and only the
last PID is kept), is very annoying when playing back MPEG TS with
multiple video and audio ES. Usually the last ES tends to be commentary
or picture-in-picture features, and the user is forced to look through
the TS structure every time to get the PID of the "normal" streams.
I am not sure if this behavior occurs with other types of multiplexed
streams, but attached is a simple 3 line patch that fixes this for MPEG
TS. I would be glad for any comments.
Best,
Yue Shi Lai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-svn-20100723-mpeg_ts_use_first_es-20100723.patch
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100723/96a0ca93/attachment.bin>
More information about the MPlayer-dev-eng
mailing list