p= next;
}
-
+#ifdef CONFIG_XVID
//FIXME maybe move to end
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
return ff_xvid_rate_control_init(s);
+#endif
if(init_pass2(s) < 0) return -1;
}
av_freep(&rcc->entry);
+#ifdef CONFIG_XVID
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
ff_xvid_rate_control_uninit(s);
+#endif
}
static inline double qp2bits(RateControlEntry *rce, double qp){
Picture * const pic= &s->current_picture;
emms_c();
+#ifdef CONFIG_XVID
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
return ff_xvid_rate_estimate_qscale(s, dry_run);
+#endif
get_qminmax(&qmin, &qmax, s, pict_type);