]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_sr.c
avformat/avio: Add Metacube support
[ffmpeg] / libavfilter / vf_sr.c
index 20334a84c49ee2ea60d87c3bfbc807a08734f7a9..4360439ca6b21b4b933e4424693832f9464ce9fe 100644 (file)
@@ -63,7 +63,7 @@ AVFILTER_DEFINE_CLASS(sr);
 static av_cold int init(AVFilterContext *context)
 {
     SRContext *sr_context = context->priv;
-    return ff_dnn_init(&sr_context->dnnctx, context);
+    return ff_dnn_init(&sr_context->dnnctx, DFT_PROCESS_FRAME, context);
 }
 
 static int query_formats(AVFilterContext *context)
@@ -193,7 +193,7 @@ static const AVFilterPad sr_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_sr = {
+const AVFilter ff_vf_sr = {
     .name          = "sr",
     .description   = NULL_IF_CONFIG_SMALL("Apply DNN-based image super resolution to the input."),
     .priv_size     = sizeof(SRContext),