]> git.sesse.net Git - nageru/commitdiff
Fix a bug where FFmpegCapture would get the wrong height, causing bogus scaling.
authorSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 4 Apr 2021 09:22:39 +0000 (11:22 +0200)
committerSteinar H. Gunderson <steinar+nageru@gunderson.no>
Sun, 4 Apr 2021 09:22:39 +0000 (11:22 +0200)
nageru/ffmpeg_capture.cpp

index 8f174ad018f7e236c896b7458af7e3248101a62f..a8b6f612a06a470eb7427648497dffc4aaf47295 100644 (file)
@@ -1109,7 +1109,7 @@ unsigned FFmpegCapture::frame_height(const AVFrame *frame) const
        if (height == 0) {
                return frame->height;
        } else {
-               return width;
+               return height;
        }
 }