]> git.sesse.net Git - nageru/blobdiff - nageru/ffmpeg_capture.cpp
Fix a bug where FFmpegCapture would get the wrong height, causing bogus scaling.
[nageru] / 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;
        }
 }