Commit 9ecfe0b8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a72d93da'

* commit 'a72d93da':
  mpegvideo_enc: Check AVCodecContext allocation

Conflicts:
	libavcodec/mpegvideo_enc.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 0bc2da6d a72d93da
......@@ -1283,6 +1283,8 @@ static int estimate_best_b_count(MpegEncContext *s)
int64_t best_rd = INT64_MAX;
int best_b_count = -1;
if (!c)
return AVERROR(ENOMEM);
av_assert0(scale >= 0 && scale <= 3);
//emms_c();
......
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