[FFmpeg-devel] [PATCH] avfilter/vf_overlay_cuda: check ctx->hwctx->internal null pointer
Timo Rothenpieler
timo at rothenpieler.org
Fri Apr 9 15:29:55 EEST 2021
On 09.04.2021 12:34, Steven Liu wrote:
> - if (ctx->hwctx && ctx->cu_module) {
> + if (ctx->hwctx && ctx->cu_module && ctx->hwctx->internal) {
> CUcontext dummy;
> CudaFunctions *cu = ctx->hwctx->internal->cuda_dl;
> CHECK_CU(cu->cuCtxPushCurrent(ctx->cu_ctx));
>
How can this happen at this point?
Did something else prematurely free the hwctx?
This makes me think that the filter is missing a buffer ref somewhere to
prevent things from getting freed too early.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210409/c1560e87/attachment.bin>
More information about the ffmpeg-devel
mailing list