diff --git a/Userland/Libraries/LibMedia/Video/VP9/Decoder.cpp b/Userland/Libraries/LibMedia/Video/VP9/Decoder.cpp index d41280db433..2ef223c551e 100644 --- a/Userland/Libraries/LibMedia/Video/VP9/Decoder.cpp +++ b/Userland/Libraries/LibMedia/Video/VP9/Decoder.cpp @@ -176,7 +176,7 @@ DecoderErrorOr Decoder::create_video_frame(FrameContext const& frame_conte { output_y_size.width(), output_y_size.height() }, frame_context.color_config.bit_depth, get_cicp_color_space(frame_context), subsampling_x, subsampling_y, - output_buffers[0], output_buffers[1], output_buffers[2]))); + move(output_buffers[0]), move(output_buffers[1]), move(output_buffers[2])))); m_video_frame_queue.enqueue(move(frame)); return {}; diff --git a/Userland/Libraries/LibMedia/VideoFrame.cpp b/Userland/Libraries/LibMedia/VideoFrame.cpp index 9325d6fa2dd..2366e2ee641 100644 --- a/Userland/Libraries/LibMedia/VideoFrame.cpp +++ b/Userland/Libraries/LibMedia/VideoFrame.cpp @@ -21,7 +21,7 @@ ErrorOr> SubsampledYUVFrame::try_create( auto plane_y_array = TRY(FixedArray::create(plane_y)); auto plane_u_array = TRY(FixedArray::create(plane_u)); auto plane_v_array = TRY(FixedArray::create(plane_v)); - return adopt_nonnull_own_or_enomem(new (nothrow) SubsampledYUVFrame(size, bit_depth, cicp, subsampling_horizontal, subsampling_vertical, plane_y_array, plane_u_array, plane_v_array)); + return adopt_nonnull_own_or_enomem(new (nothrow) SubsampledYUVFrame(size, bit_depth, cicp, subsampling_horizontal, subsampling_vertical, move(plane_y_array), move(plane_u_array), move(plane_v_array))); } template diff --git a/Userland/Libraries/LibMedia/VideoFrame.h b/Userland/Libraries/LibMedia/VideoFrame.h index 8ecf97f263b..9d06d68e5ef 100644 --- a/Userland/Libraries/LibMedia/VideoFrame.h +++ b/Userland/Libraries/LibMedia/VideoFrame.h @@ -63,7 +63,7 @@ public: Gfx::Size size, u8 bit_depth, CodingIndependentCodePoints cicp, bool subsampling_horizontal, bool subsampling_vertical, - FixedArray& plane_y, FixedArray& plane_u, FixedArray& plane_v) + FixedArray&& plane_y, FixedArray&& plane_u, FixedArray&& plane_v) : VideoFrame(size, bit_depth, cicp) , m_subsampling_horizontal(subsampling_horizontal) , m_subsampling_vertical(subsampling_vertical)