summaryrefslogtreecommitdiff
path: root/libavfilter/vf_zscale.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-11 01:53:10 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-11 01:54:03 +0100
commit4ac85ae4481089ca34772dee255f920ffc9827b6 (patch)
treec722ef0a63cdf3a9ab20716c87f20379c8f87615 /libavfilter/vf_zscale.c
parentf629ea2e188e220876ee206747b111a368bad4ef (diff)
downloadffmpeg-4ac85ae4481089ca34772dee255f920ffc9827b6.tar.gz
avfilter/vf_zscale: also check formats
Diffstat (limited to 'libavfilter/vf_zscale.c')
-rw-r--r--libavfilter/vf_zscale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c
index afbe7d9dcd..649ef7f6bb 100644
--- a/libavfilter/vf_zscale.c
+++ b/libavfilter/vf_zscale.c
@@ -762,7 +762,8 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
//we need to use this filter if something is different for an input and output only
//otherwise - just copy the input frame to the output
- if ((link->w != outlink->w) ||
+ if ((link->format != outlink->format) ||
+ (link->w != outlink->w) ||
(link->h != outlink->h) ||
(s->src_format.chroma_location != s->dst_format.chroma_location) ||
(s->src_format.color_family !=s->dst_format.color_family) ||