diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index a3a9cc275c..0ce344b2c5 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -146,7 +146,7 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&over->y_expr); if (over->overpicref) - avfilter_unref_buffer(over->overpicref); + avfilter_unref_bufferp(&over->overpicref); ff_bufqueue_discard_all(&over->queue_main); ff_bufqueue_discard_all(&over->queue_over); }