summaryrefslogtreecommitdiff
path: root/libavcodec/libaomenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-08-25 14:22:35 -0300
committerJames Almer <jamrial@gmail.com>2022-08-25 14:28:27 -0300
commit9f323cb04c30742e77e6aa95fe158d7dc5cad369 (patch)
treefc85413e6e9b3484ca0d3e0e0fdb06c45461624f /libavcodec/libaomenc.c
parent5bab794e4aaed55d3146723974ffb5ad792617ab (diff)
downloadffmpeg-9f323cb04c30742e77e6aa95fe158d7dc5cad369.tar.gz
avcodec/libaomenc: check return value of queue_frames()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libaomenc.c')
-rw-r--r--libavcodec/libaomenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index fb9a6ff8b2..a82b933c18 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -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);