# HG changeset patch # User michael # Date 1072975506 0 # Node ID 5905aae865c705a04e4a8194373d712fe7a46d36 # Parent 4536e2e6b3d7f206e7e6dcf901eee592404fef3f disable dr1&slices for the other vissualizations too diff -r 4536e2e6b3d7 -r 5905aae865c7 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Thu Jan 01 15:56:00 2004 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Thu Jan 01 16:45:06 2004 +0000 @@ -147,6 +147,7 @@ AVCodecContext *avctx; vd_ffmpeg_ctx *ctx; AVCodec *lavc_codec; + int do_vis_debug= lavc_param_vismv || (lavc_param_debug&(FF_DEBUG_VIS_MB_TYPE|FF_DEBUG_VIS_QP)); if(!avcodec_inited){ avcodec_init(); @@ -165,10 +166,10 @@ return 0; } - if(vd_use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !lavc_param_vismv) + if(vd_use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !do_vis_debug) ctx->do_slices=1; - if(lavc_codec->capabilities&CODEC_CAP_DR1 && !lavc_param_vismv) + if(lavc_codec->capabilities&CODEC_CAP_DR1 && !do_vis_debug) ctx->do_dr1=1; ctx->b_age= ctx->ip_age[0]= ctx->ip_age[1]= 256*256*256*64; ctx->ip_count= ctx->b_count= 0;