[MPlayer-dev-eng] [PATCH] demux_ogg: add switch audio control

Paul TT paultt at hackerjournal.it
Thu Nov 10 20:10:55 CET 2005


see attached patch, mostly done the way demux_mkv acts...
added also a track type and format to ogg_stream structure

is there any way to avoid declaration of a new field in there?

so, one thing is not clear at all to me: sh_audio is filled only by the
demuxer time by time, or when this loads the  file, instantiates 2 (or
+) sh_audio, as many as audio tracks? hope i've explained in a good
way...

patching demuxer_ogg gave me a new question:
why not to identify tracks type by its type (in demux_ogg.c i mean), and
not coping with ->speex, ->vorbis, ->flac fields, but use the codec
id or format??????

anyway, i think i'll apply the patch in a few days, if noone complains,
i'm going to work then in save&detect audio language string for all
track in .ogm.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer_newogg4.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051110/7fd22d71/attachment.asc>


More information about the MPlayer-dev-eng mailing list