diff mencoder.c @ 4557:1fac3562fda5

fix spudec, faszom (C#)
author pontscho
date Wed, 06 Feb 2002 22:55:47 +0000
parents 382a3c60629e
children 0245a06f9efd
line wrap: on
line diff
--- a/mencoder.c	Wed Feb 06 22:03:19 2002 +0000
+++ b/mencoder.c	Wed Feb 06 22:55:47 2002 +0000
@@ -635,7 +635,7 @@
 video_out.draw_frame=draw_frame;
 
 #ifdef USE_DVDREAD
-vo_spudec=spudec_new_scaled(stream->priv?((dvd_priv_t *)(stream->priv))->cur_pgc->palette:NULL,
+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);
 #endif