]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_bwdif.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_bwdif.c
index 37165584cf8cdcd08504510a0124fc57ecc43582..faba945c7fd494d81538ed652fa93e9a29f2005c 100644 (file)
@@ -343,8 +343,8 @@ static int config_props(AVFilterLink *link)
     if(yadif->mode&1)
         link->frame_rate = av_mul_q(link->src->inputs[0]->frame_rate, (AVRational){2,1});
 
-    if (link->w < 3 || link->h < 3) {
-        av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
+    if (link->w < 3 || link->h < 4) {
+        av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n");
         return AVERROR(EINVAL);
     }
 
@@ -410,7 +410,7 @@ static const AVFilterPad avfilter_vf_bwdif_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_bwdif = {
+const AVFilter ff_vf_bwdif = {
     .name          = "bwdif",
     .description   = NULL_IF_CONFIG_SMALL("Deinterlace the input image."),
     .priv_size     = sizeof(BWDIFContext),