[MPlayer-dev-eng] [PATCH] Make all subtitles availiable
Nico Sabbi
nicola_sabbi at fastwebnet.it
Thu Nov 30 22:25:35 CET 2006
Sturle Sunde wrote:
> Some DVDs have gaps in the subtitle tracks, like this one:
>
>
>
> Index: stream/stream_dvd.c
> ===================================================================
> --- stream/stream_dvd.c (revision 21386)
> +++ stream/stream_dvd.c (working copy)
> @@ -180,16 +180,20 @@
> if (!stream) return -1;
> d = stream->priv;
> if (!d) return -1;
> - return d->nr_of_subtitles;
> + return d->subtitles[d->nr_of_subtitles].id;
this is wrong, the range is [0,d->nr_of_subtitles-1]:
the rest looks fine to me;
More information about the MPlayer-dev-eng
mailing list