]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_uspp.c
kmsgrab: Add more supported formats
[ffmpeg] / libavfilter / vf_uspp.c
index da4029f4b2c554addc8bfec1388e993ee25d9d7f..f6fb1934331f4fb5436e93e45ab1194a6cffaacb 100644 (file)
@@ -468,10 +468,8 @@ static av_cold void uninit(AVFilterContext *ctx)
         av_freep(&uspp->src[i]);
     }
 
-    for (i = 0; i < (1 << uspp->log2_count); i++) {
-        avcodec_close(uspp->avctx_enc[i]);
-        av_freep(&uspp->avctx_enc[i]);
-    }
+    for (i = 0; i < (1 << uspp->log2_count); i++)
+        avcodec_free_context(&uspp->avctx_enc[i]);
 
     av_freep(&uspp->non_b_qp_table);
     av_freep(&uspp->outbuf);