[FFmpeg-devel] libavfilter: fix hwdownload dynamic resizing

Submitted by msanders on Nov. 26, 2018, 12:04 p.m.

Details

Message ID SluYeEc-Jwt8FDaa4P91Amjh9K4LpPAAE_eY72AmEnJlTMoI9Yr4lQ_rzRGyn--LmUmrE_UYh-BDmuHHdw9tyuOSeIzyOPOZfRs78MMa520=@protonmail.com
State New
Headers show

Commit Message

msanders Nov. 26, 2018, 12:04 p.m.
This patch resolves dynamic resizing changes in the hwdownload filter.

See more info at:
https://trac.ffmpeg.org/ticket/7564

Regards.
M. Sanders
From 2efeb454400db117af276cdfd6a98a00b80ca114 Mon Sep 17 00:00:00 2001
From: M. Sanders <hidden at gmail.com>
Date: Mon, 26 Nov 2018 11:56:14 +0000
Subject: [PATCH] libavfilter: fix hwdownload dynamic resizing

---
 libavfilter/vf_hwdownload.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_hwdownload.c b/libavfilter/vf_hwdownload.c
index 33af30c..dbc44b1 100644
--- a/libavfilter/vf_hwdownload.c
+++ b/libavfilter/vf_hwdownload.c
@@ -155,8 +155,8 @@  static int hwdownload_filter_frame(AVFilterLink *link, AVFrame *input)
         goto fail;
     }
 
-    output->width  = outlink->w;
-    output->height = outlink->h;
+    output->width  = input->width;
+    output->height = input->height;
 
     err = av_frame_copy_props(output, input);
     if (err < 0)