[FFmpeg-devel] [PATCH 4/4] lavfi/vf_libplacebo: don't intrude on pl_ namespace

Niklas Haas ffmpeg at haasn.xyz
Sun May 21 15:24:38 EEST 2023


From: Niklas Haas <git at haasn.dev>

No reason to use this prefix here.
---
 libavfilter/vf_libplacebo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index dda6f6279c2..6ff30948a78 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -267,7 +267,7 @@ static void pl_av_log(void *log_ctx, enum pl_log_level level, const char *msg)
     av_log(log_ctx, av_lev, "%s\n", msg);
 }
 
-static const struct pl_tone_map_function *pl_get_tonemapping_func(int tm) {
+static const struct pl_tone_map_function *get_tonemapping_func(int tm) {
     switch (tm) {
     case TONE_MAP_AUTO:       return &pl_tone_map_auto;
     case TONE_MAP_CLIP:       return &pl_tone_map_clip;
@@ -425,7 +425,7 @@ static int update_settings(AVFilterContext *ctx)
         .tone_mapping_mode = s->tonemapping_mode,
         .tone_mapping_crosstalk = s->crosstalk,
 #endif
-        .tone_mapping_function = pl_get_tonemapping_func(s->tonemapping),
+        .tone_mapping_function = get_tonemapping_func(s->tonemapping),
         .tone_mapping_param = s->tonemapping_param,
         .inverse_tone_mapping = s->inverse_tonemapping,
         .lut_size = s->tonemapping_lut_size,
-- 
2.40.1



More information about the ffmpeg-devel mailing list