fix, mac hwcodec decoding align use dst_align (#8215)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages authored and GitHub committed 2024-05-30 23:40:25 +08:00
1 parent d4dda94e2a
commit 8919ea65e3
7 files changed
+114 -246

No files matched your search

+2 -2
View File
@@ -1617,7 +1617,7 @@ fn read_custom_client_advanced_settings(
#[inline]
#[cfg(target_os = "macos")]
pub fn get_dst_stride_rgba() -> usize {
pub fn get_dst_align_rgba() -> usize {
// https://developer.apple.com/forums/thread/712709
// Memory alignment should be multiple of 64.
if crate::ui_interface::use_texture_render() {
@@ -1629,7 +1629,7 @@ pub fn get_dst_stride_rgba() -> usize {
#[inline]
#[cfg(not(target_os = "macos"))]
pub fn get_dst_stride_rgba() -> usize {
pub fn get_dst_align_rgba() -> usize {
1
}