mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/libaomenc: check return value of queue_frames()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5bab794e4a
commit
9f323cb04c
@ -1307,6 +1307,8 @@ static int aom_encode(AVCodecContext *avctx, AVPacket *pkt,
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
coded_size = queue_frames(avctx, pkt);
|
||||
if (coded_size < 0)
|
||||
return coded_size;
|
||||
|
||||
if (!frame && avctx->flags & AV_CODEC_FLAG_PASS1) {
|
||||
size_t b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
|
||||
|
Loading…
Reference in New Issue
Block a user