changeset 26014:6e9c78324790

Fix r26032: wrong sub stream id assigned to dvdsub_id.
author eugeni
date Thu, 21 Feb 2008 09:47:03 +0000
parents dcc1f1ac4f0c
children f222f84f2072
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Thu Feb 21 00:18:25 2008 +0000
+++ b/libmpdemux/demux_lavf.c	Thu Feb 21 09:47:03 2008 +0000
@@ -438,7 +438,7 @@
             if (demuxer->sub->id == -1
                 || (demuxer->sub->id == -2 && (dvdsub_lang && st->language[0] && !strncmp(dvdsub_lang, st->language, 3)))
                 || demuxer->sub->id == priv->sub_streams) {
-                dvdsub_id = i;
+                dvdsub_id = priv->sub_streams;
                 demuxer->sub->id = priv->sub_streams;
                 demuxer->sub->sh = sh_sub;
             }