changeset 5392:d7c586ebbacf

Fix bug noticed by Hajba Szilard in message <20020329151644.A23301@revai.hu>
author kmkaplan
date Fri, 29 Mar 2002 15:12:41 +0000
parents 7a4ea9beebc0
children cbf0fed4d211
files mencoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Fri Mar 29 13:46:34 2002 +0000
+++ b/mencoder.c	Fri Mar 29 15:12:41 2002 +0000
@@ -777,8 +777,8 @@
   if (vobsub_parse_ifo(spudec_ifo, palette, &width, &height, 1) >= 0)
     vo_spudec=spudec_new_scaled(palette, sh_video->disp_w, sh_video->disp_h);
 }
+#ifdef USE_DVDREAD
 if (vo_spudec==NULL) {
-#ifdef USE_DVDREAD
 vo_spudec=spudec_new_scaled(stream->type==STREAMTYPE_DVD?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL,
 			    sh_video->disp_w, sh_video->disp_h);
 }