Commit abee1972 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '42df71d9'

* commit '42df71d9':
  ratecontrol: Check memory allocation

Conflicts:
	libavcodec/ratecontrol.c

See: 0898a6d4Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6ed8341c 42df71d9
......@@ -223,8 +223,10 @@ av_cold int ff_rate_control_init(MpegEncContext *s)
p = next;
}
if (init_pass2(s) < 0)
if (init_pass2(s) < 0) {
ff_rate_control_uninit(s);
return -1;
}
// FIXME maybe move to end
if ((s->avctx->flags & CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
......
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