[FFmpeg-devel] [PATCH v3 2/3] suppress build warnings

Rajiv Harlalka rajivharlalka009 at gmail.com
Fri Aug 23 20:23:59 EEST 2024


Signed-off-by: Rajiv Harlalka <rajivharlalka009 at gmail.com>
---
 libavfilter/vf_pu21.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_pu21.c b/libavfilter/vf_pu21.c
index c3b56f9c1b..e47ef065e8 100644
--- a/libavfilter/vf_pu21.c
+++ b/libavfilter/vf_pu21.c
@@ -8,7 +8,7 @@
 #include "libavutil/internal.h"
 #include "video.h"
 
-static enum pu21_mode {
+enum pu21_mode {
   BANDING,
   BANDING_GLARE,
   PEAKS,
@@ -165,9 +165,7 @@ static int filter_frame(AVFilterLink* inlink, AVFrame* input) {
   return ff_filter_frame(outlink, out);
 }
 
-static av_cold void uninit(AVFilterContext* ctx) {
-  PU21Context* s = ctx->priv;
-}
+static av_cold void uninit(AVFilterContext* ctx) {}
 
 static int config_input(AVFilterLink* inlink) {
   const AVPixFmtDescriptor* desc = av_pix_fmt_desc_get(inlink->format);
-- 
2.25.1



More information about the ffmpeg-devel mailing list