[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 13 19:10:37 EEST 2023


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230613/4fdc9c90/attachment.htm>


More information about the Libav-user mailing list