[MPlayer-cvslog] Re: r21619 - in trunk/stream: stream_dvdnav.c stream_dvdnav.h

Joakim Plate elupus at ecce.se
Fri Dec 15 19:24:38 CET 2006


nicodvb <subversion <at> mplayerhq.hu> writes:

> +  if(aid >= 0x80 && aid < 0x88)
> +    aid -= 0x80;
> +  else if(aid >= 0x88 && aid <= 0x8F)
> +    aid -= 0x88;
> +  else if(aid >= 0xA0 && aid <= 0xAF)
> +    aid -= 0xA0;
> +  if(aid < 0)
> +    return 0;

or simply just aid & 0x7, the stream number for dvd's are always the lower 3
bits, other bits are flags for format. for subs its sid & 0x1f. ofcourse this is
only valid for dvd's, but then again these functions is just used for dvd's.

/Joakim






More information about the MPlayer-cvslog mailing list