This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 94cafa1805 avcodec/qsvdec: free the system memory pool on reinit
94cafa1805 is described below
commit 94cafa1805620244885192f3d9d020e2a425099d
Author: Anton Kesy <[email protected]>
AuthorDate: Mon Nov 9 09:11:40 2026 +0100
Commit: Zhao Zhili <[email protected]>
CommitDate: Thu Nov 26 14:00:54 2026 +0000
avcodec/qsvdec: free the system memory pool on reinit
qsv_decode_init_context() runs again after a resolution or format
change and overwrote q->pool without releasing the old one. When
decoding to system memory (no hw_frames_ctx), every reinit leaked the
old pool and all buffers allocated from it.
Signed-off-by: Anton Kesy <[email protected]>
---
libavcodec/qsvdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 990e46ea1d..8e49314651 100644
--- a/libavcodec/qsvdec.c
+++ b/libavcodec/qsvdec.c
@@ -417,6 +417,7 @@ static int qsv_decode_init_context(AVCodecContext *avctx,
QSVContext *q, mfxVide
ret = av_image_get_buffer_size(avctx->pix_fmt,
FFALIGN(avctx->coded_width, 128), FFALIGN(avctx->coded_height, 64), 1);
if (ret < 0)
return ret;
+ av_buffer_pool_uninit(&q->pool);
q->pool = av_buffer_pool_init(ret, av_buffer_allocz);
}
return 0;
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]