]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_unsharp.c
lavfi: port tinterlace filter from MPlayer
[ffmpeg] / libavfilter / vf_unsharp.c
index bd78ade39c00406de7da9ae3d6e4498616e4c0dd..1fd6cce9c7e8a02048058c9d0a2c404d3513af55 100644 (file)
@@ -73,7 +73,7 @@ static void apply_unsharp(      uint8_t *dst, int dst_stride,
 
     int32_t res;
     int x, y, z;
-    const uint8_t *src2;
+    const uint8_t *src2 = NULL;  //silence a warning
 
     if (!fp->amount) {
         if (dst_stride == src_stride)
@@ -242,7 +242,7 @@ AVFilter avfilter_vf_unsharp = {
     .uninit = uninit,
     .query_formats = query_formats,
 
-    .inputs    = (AVFilterPad[]) {{ .name             = "default",
+    .inputs    = (const AVFilterPad[]) {{ .name       = "default",
                                     .type             = AVMEDIA_TYPE_VIDEO,
                                     .draw_slice       = draw_slice,
                                     .end_frame        = end_frame,
@@ -250,7 +250,7 @@ AVFilter avfilter_vf_unsharp = {
                                     .min_perms        = AV_PERM_READ, },
                                   { .name = NULL}},
 
-    .outputs   = (AVFilterPad[]) {{ .name             = "default",
+    .outputs   = (const AVFilterPad[]) {{ .name       = "default",
                                     .type             = AVMEDIA_TYPE_VIDEO, },
                                   { .name = NULL}},
 };