From 9948aa3cbbf9e0eaa7e0f92852498195e287e235 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 4 Apr 2021 11:22:39 +0200 Subject: [PATCH] Fix a bug where FFmpegCapture would get the wrong height, causing bogus scaling. --- nageru/ffmpeg_capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nageru/ffmpeg_capture.cpp b/nageru/ffmpeg_capture.cpp index 8f174ad..a8b6f61 100644 --- a/nageru/ffmpeg_capture.cpp +++ b/nageru/ffmpeg_capture.cpp @@ -1109,7 +1109,7 @@ unsigned FFmpegCapture::frame_height(const AVFrame *frame) const if (height == 0) { return frame->height; } else { - return width; + return height; } } -- 2.39.2