From 666bd64943c247c975ec03102c1fb96b35412ea6 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 4 Apr 2020 12:43:28 +1100 Subject: [PATCH] pixelformat: fixed regression that broke pixel format conversion Affected all exports. --- app/render/pixelformat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/render/pixelformat.cpp b/app/render/pixelformat.cpp index 26f5cc5ae..59fd09d0e 100644 --- a/app/render/pixelformat.cpp +++ b/app/render/pixelformat.cpp @@ -193,7 +193,9 @@ FramePtr PixelFormat::ConvertPixelFormat(FramePtr frame, const PixelFormat::Form FramePtr converted = Frame::Create(); // Copy parameters - converted->set_video_params(frame->video_params()); + converted->set_video_params(VideoRenderingParams(frame->video_params().width(), + frame->video_params().height(), + dest_format)); converted->set_timestamp(frame->timestamp()); converted->allocate();