[MPlayer-users] wrong audio chanell and subtitles on DVD playback

Jason Lunz j at falooley.org
Thu Oct 18 19:07:31 CEST 2001

arpi at thot.banki.hu said:
> before you ask why is vob audio counted from 128 - ask mpeg group.

In some css_cat program I have, it does this to select the AC3 track:

	int audiotrack = param.do_ac3 - 1;
	if (pes[hdrlen] == (0x80|(audiotrack & 7))) {

If the high bit of the audio stream byte is always 1, then you don't
have to count from 128, you can just mask with 7 like above and count
streams from 0..n (or decrement the user aid number so people can use
the more intuitive 1..n). 

It seems that would make it a lot easier for everyone to find the right
audio track.


More information about the MPlayer-users mailing list