You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avfilter/vf_scale: remove global side data when it no longer applies after scaling
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -684,6 +684,16 @@ static int config_props(AVFilterLink *outlink)
|
|||||||
flags_val);
|
flags_val);
|
||||||
av_freep(&flags_val);
|
av_freep(&flags_val);
|
||||||
|
|
||||||
|
if (inlink->w != outlink->w || inlink->h != outlink->h) {
|
||||||
|
av_frame_side_data_remove_by_props(&outlink->side_data, &outlink->nb_side_data,
|
||||||
|
AV_SIDE_DATA_PROP_SIZE_DEPENDENT);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (scale->in_primaries != scale->out_primaries || scale->in_transfer != scale->out_transfer) {
|
||||||
|
av_frame_side_data_remove_by_props(&outlink->side_data, &outlink->nb_side_data,
|
||||||
|
AV_SIDE_DATA_PROP_COLOR_DEPENDENT);
|
||||||
|
}
|
||||||
|
|
||||||
if (!IS_SCALE2REF(ctx)) {
|
if (!IS_SCALE2REF(ctx)) {
|
||||||
ff_framesync_uninit(&scale->fs);
|
ff_framesync_uninit(&scale->fs);
|
||||||
ret = ff_framesync_init(&scale->fs, ctx, ctx->nb_inputs);
|
ret = ff_framesync_init(&scale->fs, ctx, ctx->nb_inputs);
|
||||||
|
Reference in New Issue
Block a user