comparison libmpcodecs/vd_ffmpeg.c @ 11711:4536e2e6b3d7

disable slices & dr1 if motion vector vissualization is used, still doesnt work though, maybe i should reverse the last mv vis patch ...
author michael
date Thu, 01 Jan 2004 15:56:00 +0000
parents e4c043ebf3a6
children 5905aae865c7
comparison
equal deleted inserted replaced
11710:d37d4bc38f26 11711:4536e2e6b3d7
163 if(!lavc_codec){ 163 if(!lavc_codec){
164 mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingLAVCcodec,sh->codec->dll); 164 mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingLAVCcodec,sh->codec->dll);
165 return 0; 165 return 0;
166 } 166 }
167 167
168 if(vd_use_slices && lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) 168 if(vd_use_slices && (lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND) && !lavc_param_vismv)
169 ctx->do_slices=1; 169 ctx->do_slices=1;
170 170
171 if(lavc_codec->capabilities&CODEC_CAP_DR1) 171 if(lavc_codec->capabilities&CODEC_CAP_DR1 && !lavc_param_vismv)
172 ctx->do_dr1=1; 172 ctx->do_dr1=1;
173 ctx->b_age= ctx->ip_age[0]= ctx->ip_age[1]= 256*256*256*64; 173 ctx->b_age= ctx->ip_age[0]= ctx->ip_age[1]= 256*256*256*64;
174 ctx->ip_count= ctx->b_count= 0; 174 ctx->ip_count= ctx->b_count= 0;
175 175
176 #if LIBAVCODEC_BUILD >= 4645 176 #if LIBAVCODEC_BUILD >= 4645