changeset 4557:1fac3562fda5

fix spudec, faszom (C#)
author pontscho
date Wed, 06 Feb 2002 22:55:47 +0000
parents 90a535d87e7b
children aac57ef92bab
files mencoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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