ffmpeg | branch: master | Paul B Mahol <[email protected]> | Fri Mar 11 01:53:10 
2022 +0100| [4ac85ae4481089ca34772dee255f920ffc9827b6] | committer: Paul B Mahol

avfilter/vf_zscale: also check formats

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ac85ae4481089ca34772dee255f920ffc9827b6
---

 libavfilter/vf_zscale.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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) ||

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to