mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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.
This commit is contained in:
parent
4e521e6102
commit
ee13414444
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user