comparison ratecontrol.c @ 3200:646f6344472d libavcodec

make ff_rate_control_init() bail out if rc_strategy==1 and lavc wasn't compiled with xvid support.
author corey
date Fri, 17 Mar 2006 16:40:10 +0000
parents b2c352a66a73
children a78cc2e4b90e
comparison
equal deleted inserted replaced
3199:1651e69b9f7a 3200:646f6344472d
115 return -1; 115 return -1;
116 } 116 }
117 117
118 p= next; 118 p= next;
119 } 119 }
120 //FIXME maybe move to end
121 if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
120 #ifdef CONFIG_XVID 122 #ifdef CONFIG_XVID
121 //FIXME maybe move to end
122 if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
123 return ff_xvid_rate_control_init(s); 123 return ff_xvid_rate_control_init(s);
124 #else
125 av_log(s->avctx, AV_LOG_ERROR, "XviD ratecontrol requires libavcodec compiled with XviD support\n");
126 return -1;
124 #endif 127 #endif
128 }
125 129
126 if(init_pass2(s) < 0) return -1; 130 if(init_pass2(s) < 0) return -1;
127 } 131 }
128 132
129 if(!(s->flags&CODEC_FLAG_PASS2)){ 133 if(!(s->flags&CODEC_FLAG_PASS2)){