You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mpegvideo_enc: Check AVCodecContext allocation
This commit is contained in:
@@ -1136,6 +1136,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);
|
||||
assert(scale >= 0 && scale <= 3);
|
||||
|
||||
//emms_c();
|
||||
|
Reference in New Issue
Block a user