commit | 9f323cb04c30742e77e6aa95fe158d7dc5cad369 | [log] [tgz] |
---|---|---|
author | James Almer <[email protected]> | Thu Aug 25 17:22:35 2022 |
committer | James Almer <[email protected]> | Thu Aug 25 17:28:27 2022 |
tree | fc85413e6e9b3484ca0d3e0e0fdb06c45461624f | |
parent | 5bab794e4aaed55d3146723974ffb5ad792617ab [diff] [blame] |
avcodec/libaomenc: check return value of queue_frames() Signed-off-by: James Almer <[email protected]>
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index fb9a6ff..a82b933 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c
@@ -1307,6 +1307,8 @@ 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);