pixelformat: fixed regression that broke pixel format conversion

Affected all exports.
This commit is contained in:
itsmattkc
2020-04-04 12:45:14 +11:00
parent 07d1123978
commit 666bd64943
+3 -1
View File
@@ -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();