mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 17:21:05 +00: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;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
coded_size = queue_frames(avctx, pkt);
|
coded_size = queue_frames(avctx, pkt);
|
||||||
|
if (coded_size < 0)
|
||||||
|
return coded_size;
|
||||||
|
|
||||||
if (!frame && avctx->flags & AV_CODEC_FLAG_PASS1) {
|
if (!frame && avctx->flags & AV_CODEC_FLAG_PASS1) {
|
||||||
size_t b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
|
size_t b64_size = AV_BASE64_SIZE(ctx->twopass_stats.sz);
|
||||||
|
Loading…
Reference in New Issue
Block a user