[FFmpeg-cvslog] lavfi/vf_libplacebo: don't intrude on pl_ namespace

Niklas Haas git at videolan.org
Mon May 22 11:35:01 EEST 2023


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Sun May 21 13:38:42 2023 +0200| [877ccaf776c92866e17493b48da49fab5b9ef11a] | committer: Niklas Haas

lavfi/vf_libplacebo: don't intrude on pl_ namespace

No reason to use this prefix here.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=877ccaf776c92866e17493b48da49fab5b9ef11a
---

 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 27b65cdb5b..65fe6ef746 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -269,7 +269,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;
@@ -427,7 +427,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,



More information about the ffmpeg-cvslog mailing list