lavfi: generic hardware surface upload and download filters
[ffmpeg.git] / libavfilter / avfilter.c
index 8eefc51..190d8ab 100644 (file)
@@ -525,6 +525,8 @@ void avfilter_free(AVFilterContext *filter)
     if (filter->filter->priv_class)
         av_opt_free(filter->priv);
 
+    av_buffer_unref(&filter->hw_device_ctx);
+
     av_freep(&filter->name);
     av_freep(&filter->input_pads);
     av_freep(&filter->output_pads);