[MPlayer-dev-eng] [PATCH] fix detection of dvds with first aid != 128

Aurelien Jacobs aurel at gnuage.org
Fri Dec 3 15:14:04 CET 2004


On Wed, 1 Dec 2004 15:06:20 +0100
Aurelien Jacobs <aurel at gnuage.org> wrote:

> Hi,
> 
> I've got a problem with a dvd which has only one audio track (AC3)
> but with an aid == 129 ! (I think this DVD was created with
> DVDShrink)
> Currently MPlayer set the aid to 128 for the first AC3 track it
> dectects. It seems to be hard to fix this properly.
> 
> But anothoer problem is that dvd_aid_from_lang() always return
> the first audio stream id if no lang was specified. This is
> wrong. When calling dvd_aid_from_lang() you expect to get
> the audio id corresponding to this lang, and not a random one
> if the lang was not found. IMHO the correct behavior is to
> return -1 if the lang was not found. This allows the caller
> to know that this language is not available. And this then
> allow the mpeg demuxer to actually select the first stream
> it encounter if no one was specified.
> 
> It allows me to play my DVD without explicitely specifying
> -aid 129.
> I tested this with others DVDs (AC3/DTS/LPCM), with or without
> -aid or -alang and everything is working as expected.
> So I will commit this soon.

Commited.

Aurel




More information about the MPlayer-dev-eng mailing list