diff options
author | Niklas Haas <git@haasn.dev> | 2024-04-26 12:56:35 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2024-12-23 14:23:13 +0100 |
commit | f22965b8823c92b16c645e7ef5a0ef95b81c7821 (patch) | |
tree | 406392e41e5405e515d3a5b29a5dd9d8c256426b /libavfilter/vf_scale_cuda.c | |
parent | b88944a8aa599be0f16603380e7bc51402d3caf8 (diff) | |
download | ffmpeg-f22965b8823c92b16c645e7ef5a0ef95b81c7821.tar.gz |
avfilter/vf_scale*: strip metadata on size change
Diffstat (limited to 'libavfilter/vf_scale_cuda.c')
-rw-r--r-- | libavfilter/vf_scale_cuda.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c index eb8beee771..b9a30e6de9 100644 --- a/libavfilter/vf_scale_cuda.c +++ b/libavfilter/vf_scale_cuda.c @@ -536,6 +536,11 @@ static int cudascale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in) if (ret < 0) return ret; + if (out->width != in->width || out->height != in->height) { + av_frame_side_data_remove_by_props(&out->side_data, &out->nb_side_data, + AV_SIDE_DATA_PROP_SIZE_DEPENDENT); + } + return 0; } |