[FFmpeg-cvslog] lavfi/vf_libplacebo: update settings after adding hooks
Niklas Haas
git at videolan.org
Tue May 23 16:07:10 EEST 2023
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Tue May 23 15:05:21 2023 +0200| [ee13414444a02cf57c005f79c1eb13eff95e47b1] | committer: Niklas Haas
lavfi/vf_libplacebo: update settings after adding hooks
Failure to do so led to the update s->hooks never getting correctly
propagated to the render params.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee13414444a02cf57c005f79c1eb13eff95e47b1
---
libavfilter/vf_libplacebo.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index 65fe6ef746..abf22a6117 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -317,6 +317,8 @@ static void set_gamut_mode(struct pl_color_map_params *p, int gamut_mode)
av_assert0(0);
};
+static int update_settings(AVFilterContext *ctx);
+
static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len)
{
LibplaceboContext *s = avctx->priv;
@@ -329,7 +331,7 @@ static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len)
}
s->hooks[s->num_hooks++] = hook;
- return 0;
+ return update_settings(avctx);
}
static int find_scaler(AVFilterContext *avctx,
More information about the ffmpeg-cvslog
mailing list