ffmpeg | branch: master | Koushik Dutta <kou...@gmail.com> | Sun Nov 24 
20:48:54 2024 -0800| [352333543c04596b86a035be2f4c738482ce353e] | committer: 
Zhao Zhili

avfilter/scale_vt: implement negative width/height aspect ratio sizing

Signed-off-by: Koushik Dutta <kou...@gmail.com>
Signed-off-by: Zhao Zhili <zhiliz...@tencent.com>

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

 libavfilter/vf_scale_vt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_scale_vt.c b/libavfilter/vf_scale_vt.c
index 05f4e7b797..07d825b1ba 100644
--- a/libavfilter/vf_scale_vt.c
+++ b/libavfilter/vf_scale_vt.c
@@ -189,6 +189,8 @@ static int scale_vt_config_output(AVFilterLink *outlink)
     if (err < 0)
         return err;
 
+    ff_scale_adjust_dimensions(inlink, &s->output_width, &s->output_height, 0, 
1);
+
     outlink->w = s->output_width;
     outlink->h = s->output_height;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to