mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
Bug fix for UYVYToNV12 odd height
TBR=harryjin@google.com BUG=libyuv:528 Review URL: https://codereview.chromium.org/1506973002 .
This commit is contained in:
parent
bea690b3e0
commit
48a919d86e
@ -2517,7 +2517,7 @@ int YUY2ToNV12(const uint8* src_yuy2, int src_stride_yuy2,
|
||||
}
|
||||
if (height & 1) {
|
||||
// Split Y from UV.
|
||||
SplitUVRow(src_yuy2, dst_y, dst_uv, width);
|
||||
SplitUVRow(src_yuy2, dst_y, dst_uv, awidth);
|
||||
}
|
||||
free_aligned_buffer_64(rows);
|
||||
}
|
||||
@ -2621,7 +2621,7 @@ int UYVYToNV12(const uint8* src_uyvy, int src_stride_uyvy,
|
||||
}
|
||||
if (height & 1) {
|
||||
// Split Y from UV.
|
||||
SplitUVRow(src_uyvy, dst_y, dst_uv, width);
|
||||
SplitUVRow(src_uyvy, dst_uv, dst_y, awidth);
|
||||
}
|
||||
free_aligned_buffer_64(rows);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user