From d668f6a9e65a09f5640dca99732471b1d0084251 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Mon, 19 Dec 2022 19:57:21 +0100 Subject: [PATCH] use the size of the input video for the output video --- src/video/video-demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/video-demo.cpp b/src/video/video-demo.cpp index 836932392..bbd147470 100644 --- a/src/video/video-demo.cpp +++ b/src/video/video-demo.cpp @@ -102,7 +102,7 @@ int main(int argc, char **argv) { float fps = capture.get(cv::CAP_PROP_FPS); float width = capture.get(cv::CAP_PROP_FRAME_WIDTH); float height = capture.get(cv::CAP_PROP_FRAME_HEIGHT); - v2d->makeVAWriter(OUTPUT_FILENAME, cv::VideoWriter::fourcc('V', 'P', '9', '0'), fps, v2d->getFrameBufferSize(), VA_HW_DEVICE_INDEX); + v2d->makeVAWriter(OUTPUT_FILENAME, cv::VideoWriter::fourcc('V', 'P', '9', '0'), fps, cv::Size(width, height), VA_HW_DEVICE_INDEX); v2d->opengl(init_scene);