Commit 5871fc55 authored by corey's avatar corey

make ff_rate_control_init() bail out if rc_strategy==1 and lavc wasn't

compiled with xvid support.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5176 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 408d06d9
......@@ -117,11 +117,15 @@ int ff_rate_control_init(MpegEncContext *s)
p= next;
}
#ifdef CONFIG_XVID
//FIXME maybe move to end
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID)
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
#ifdef CONFIG_XVID
return ff_xvid_rate_control_init(s);
#else
av_log(s->avctx, AV_LOG_ERROR, "XviD ratecontrol requires libavcodec compiled with XviD support\n");
return -1;
#endif
}
if(init_pass2(s) < 0) return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment