[MPlayer-dev-eng] [PATCH] fix -aid matching in demux_ogg.c

kiriuja mplayer-patches at en-directo.net
Thu Oct 28 02:23:41 CEST 2004


As the -aid section of the manpage says, mplayer -v outputs the available
aids that can be passed with the -aid option. But in demux_ogg.c they did
not match the aids it actually accepted.

For example, a dual ogm file I have gives this output:

...
==> Found video stream: 0
Ogg stream 0 is video (new hdr)
...
==> Found audio stream: 1
Ogg : stream 1 is vorbis
==> Found audio stream: 2
Ogg : stream 2 is vorbis
Ogg stream 3 is text
Ogg stream length (granulepos): 34192
Ogg demuxer : found 2 audio streams, 1 video stream and 1 text stream
...

but in fact it accepted -aid 0 for the first audio stream and -aid 1 for
the second one. -aid 2 produced no audio. (-sid 3 works fine.)

Fix attached. Tested & works here.

--
kiriuja
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-ogg-aid-1.patch
Type: text/x-diff
Size: 1197 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041027/c7882a90/attachment.patch>


More information about the MPlayer-dev-eng mailing list