[MPlayer-cvslog] r26301 - in trunk: libmpdemux/demux_lavf.c libmpdemux/demux_mkv.c libmpdemux/demuxer.c libmpdemux/demuxer.h libmpdemux/stheader.h mencoder.c mpcommon.c mplayer.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Apr 5 11:15:52 CEST 2008


On Sun, Mar 30, 2008 at 06:55:46PM +0200, eugeni wrote:
> +int demuxer_default_audio_track(demuxer_t* d)
> +{
> +    int i;
> +    for (i=0; i < MAX_A_STREAMS; ++i) {
> +        sh_audio_t* sh = d->a_streams[i];
> +        if (sh && sh->default_track)
> +            return sh->aid;
> +    }
> +    for (i=0; i < MAX_A_STREAMS; ++i) {
> +        sh_audio_t* sh = d->a_streams[i];
> +        if (sh)
> +            return sh->aid;
> +    }

What is this part supposed to be good for? Exactly this should happen
anyway when you just return -1. And while the real bug is elsewhere,
this part breaks audio for nsv files.



More information about the MPlayer-cvslog mailing list