[MPlayer-dev-eng] mencoder verbose check fix patch

Julián Nuñez julian at proteger.org.ar
Fri Nov 19 13:53:01 CET 2004


How about
if(file_format != DEMUXER_TYPE_TV && verbose)

??

Kyuso Cahi wrote:

>It seems the following problem never seems to get fixed and I thought someone 
>would have noticed by now.
>
>mencoder displays skipped/duplicated frame message even if verbose=0. The 
>following patch checks verbose flag properly to remove these messages.
>
>
>  
>
>------------------------------------------------------------------------
>
>--- mencoder.c.orig	2004-11-18 11:39:09.388465419 -0800
>+++ mencoder.c	2004-11-18 11:39:26.149767586 -0800
>@@ -1422,7 +1422,7 @@
> 
> if(skip_flag<0){
>     // duplicate frame
>-	if(file_format != DEMUXER_TYPE_TV && !verbose) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_DuplicateFrames,-skip_flag);
>+	if(file_format != DEMUXER_TYPE_TV && verbose>0) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_DuplicateFrames,-skip_flag);
>     while(skip_flag<0){
> 	duplicatedframes++;
> 	if (!encode_duplicates || !sh_video->vfilter || ((vf_instance_t *)sh_video->vfilter)->control(sh_video->vfilter, VFCTRL_DUPLICATE_FRAME, 0) != CONTROL_TRUE)
>@@ -1432,7 +1432,7 @@
> } else
> if(skip_flag>0){
>     // skip frame
>-	if(file_format != DEMUXER_TYPE_TV && !verbose) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_SkipFrame);
>+	if(file_format != DEMUXER_TYPE_TV && verbose>0) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_SkipFrame);
> 	skippedframes++;
>     --skip_flag;
> }
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>  
>

"The danger lies not in the machine itself but in the user's failure to envision the full consequences of the instructions he gives to it."
Neal Stephenson




More information about the MPlayer-dev-eng mailing list