Mercurial > libavcodec.hg
changeset 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 | 1651e69b9f7a |
children | 35f5c9a8bc83 |
files | ratecontrol.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ratecontrol.c Fri Mar 17 12:08:46 2006 +0000 +++ b/ratecontrol.c Fri Mar 17 16:40:10 2006 +0000 @@ -117,11 +117,15 @@ p= next; } + //FIXME maybe move to end + if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) { #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); +#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; }