Browse Source

Merge commit 'a72d93daa09ffbad2771f1450820941055eaf210'

* commit 'a72d93daa09ffbad2771f1450820941055eaf210':
  mpegvideo_enc: Check AVCodecContext allocation

Conflicts:
	libavcodec/mpegvideo_enc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
9ecfe0b878
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/mpegvideo_enc.c

+ 2
- 0
libavcodec/mpegvideo_enc.c View File

@@ -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();


Loading…
Cancel
Save