mpegvideo_enc: Check AVCodecContext allocation

pull/125/head
Vittorio Giovara 10 years ago
parent 78c8922841
commit a72d93daa0
  1. 2
      libavcodec/mpegvideo_enc.c

@ -1136,6 +1136,8 @@ static int estimate_best_b_count(MpegEncContext *s)
int64_t best_rd = INT64_MAX; int64_t best_rd = INT64_MAX;
int best_b_count = -1; int best_b_count = -1;
if (!c)
return AVERROR(ENOMEM);
assert(scale >= 0 && scale <= 3); assert(scale >= 0 && scale <= 3);
//emms_c(); //emms_c();

Loading…
Cancel
Save