[MPlayer-dev-eng] [PATCH] Switch audio control in OGG demuxer

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Apr 12 19:03:43 CEST 2010


On Sun, Apr 11, 2010 at 09:49:04PM +0200, ubitux wrote:
> +                /* Select specified audio stream */
> +                int n_audio = 0;
> +
> +                for (n = 0; n < ogg_d->num_sub; n++) {
> +                    ogg_stream_t *ostream = &ogg_d->subs[n];
> +
> +                    if (STREAM_IS_AUDIO(ostream)) {
> +                        if (n_audio == id) {
> +                            demuxer->audio->id = n;
> +                            break;
> +                        }
> +                        n_audio++;
> +                    }
> +                }

Get rid of n_audio and check for ostream->id == id



More information about the MPlayer-dev-eng mailing list