[MPlayer-dev-eng] bug in demux_mkv

Aurelien Jacobs aurel at gnuage.org
Sat Jul 14 23:12:37 CEST 2007


On Sat, 14 Jul 2007 11:17:21 -0700
Sean D'Epagnier <sean at depagnier.com> wrote:

> Hi, I tried to play a mkv file in mplayer and I have a crash on line 2535 of
> demux_mkv.c
> 
> In "demux_mkv.c" line 2520 "demux_mkv_find_track_by_num" is called. It is
> called from other places as well, and as it can return NULL the return value
> is tested against this in all the other locations but not this one.  With my
> particular file it returns NULL then crashes on line 2535 since track is NULL.
> 
> If I specify "-aid 0" to mplayer it is able to find the track.
> 
> It would be easy enough to add a test for this and disable audio by setting
> demuxer->audio->id to -2.   What I don't understand is why mplayer can't
> detect the audio track (the only one in the file) and use it if "-aid" is not
> specified.
> 
> I would be glad to write a patch to fix the issue, but I am not sure if I
> should make mplayer auto-detect the track or require -aid 0 to be specified.

Could you please make the sample file available somewhere ?

Aurel



More information about the MPlayer-dev-eng mailing list