[Libav-user] Memory doesn't decrease after freeing a derived device context of type AV_HWDEVICE_TYPE_QSV
karim abd
karimabdalsalam at hotmail.com
Tue Jun 20 01:34:14 EEST 2023
Thank you for your help
using your patches hwcontext_qsv works without any memory leaks
Best regards
From: Xiang, Haihao<mailto:haihao.xiang-at-intel.com at ffmpeg.org>
Sent: Monday, 19 June 2023 4:36 am
To: libav-user at ffmpeg.org<mailto:libav-user at ffmpeg.org>
Subject: Re: [Libav-user] Memory doesn't decrease after freeing a derived device context of type AV_HWDEVICE_TYPE_QSV
Hi Karim,
Could you please try https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230616072723.1885-1-tong1.wu@intel.com/ and https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=9116 ?
Thanks
Haihao
Hi
Thank you for your help
I tried your code but it doesn’t leak memory
My code leaks memory only when these 2 lines are used
err = av_hwdevice_ctx_create_derived(&encoderContext->hw_device_ctx, AV_HWDEVICE_TYPE_QSV, hardwareDeviceContext, 0);
err = av_hwframe_ctx_create_derived(&encoderContext->hw_frames_ctx, AV_PIX_FMT_QSV, encoderContext->hw_device_ctx, hardwareFrameContext, 0);
Best regards
_______________________________________________
Libav-user mailing list
Libav-user at ffmpeg.org<mailto:Libav-user at ffmpeg.org>
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
libav-user-request at ffmpeg.org<mailto:libav-user-request at ffmpeg.org> with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230619/c89ac593/attachment.htm>
More information about the Libav-user
mailing list