mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibMedia: Ensure that buffers passed to SubsampledYUVFrame are moved
This commit is contained in:
parent
d3f88b4987
commit
6f8389c483
Notes:
sideshowbarker
2024-07-17 03:10:07 +09:00
Author: https://github.com/Zaggy1024
Commit: 6f8389c483
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/230
Reviewed-by: https://github.com/ADKaster
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ ErrorOr<NonnullOwnPtr<SubsampledYUVFrame>> SubsampledYUVFrame::try_create(
|
|||
auto plane_y_array = TRY(FixedArray<u16>::create(plane_y));
|
||||
auto plane_u_array = TRY(FixedArray<u16>::create(plane_u));
|
||||
auto plane_v_array = TRY(FixedArray<u16>::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<u32 subsampling_horizontal>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue