diff libmpcodecs/vd_ffmpeg.c @ 11712:5905aae865c7

disable dr1&slices for the other vissualizations too
author michael
date Thu, 01 Jan 2004 16:45:06 +0000
parents 4536e2e6b3d7
children 6d19216b4f2c
line wrap: on
line diff
--- 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;