summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-25 14:05:45 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-30 17:17:23 +0100
commite9e2157dda26a08113a146330682f29e6d2accb4 (patch)
tree33f0e81a739d686e48c2f29c66cc28f2e579f8b6
parent1cdbccaa163eb3bd50403ecc75fc3da9d5d75c02 (diff)
avcodec/qsvenc: Fix leak of A53 data
Up until now, it has only been freed when the QSVFrame is reused, so that the last one contained in it leaked at the end. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/qsvenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index 66f79bb021..e5d09752cb 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1612,6 +1612,7 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
while (cur) {
q->work_frames = cur->next;
av_frame_free(&cur->frame);
+ free_encoder_ctrl_payloads(&cur->enc_ctrl);
av_freep(&cur);
cur = q->work_frames;
}