mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
check height is non-zero
BUG=none TESTED=libyuv unittest with even width R=bcornell@google.com Review URL: https://webrtc-codereview.appspot.com/51219004.
This commit is contained in:
parent
4389070d34
commit
ee351bc2d5
@ -838,8 +838,10 @@ void TransposePlane(const uint8* src, int src_stride,
|
|||||||
i -= 8;
|
i -= 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i > 0) {
|
||||||
TransposeWxH_C(src, src_stride, dst, dst_stride, width, i);
|
TransposeWxH_C(src, src_stride, dst, dst_stride, width, i);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LIBYUV_API
|
LIBYUV_API
|
||||||
void RotatePlane90(const uint8* src, int src_stride,
|
void RotatePlane90(const uint8* src, int src_stride,
|
||||||
@ -1037,11 +1039,13 @@ void TransposeUV(const uint8* src, int src_stride,
|
|||||||
i -= 8;
|
i -= 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i > 0) {
|
||||||
TransposeUVWxH_C(src, src_stride,
|
TransposeUVWxH_C(src, src_stride,
|
||||||
dst_a, dst_stride_a,
|
dst_a, dst_stride_a,
|
||||||
dst_b, dst_stride_b,
|
dst_b, dst_stride_b,
|
||||||
width, i);
|
width, i);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LIBYUV_API
|
LIBYUV_API
|
||||||
void RotateUV90(const uint8* src, int src_stride,
|
void RotateUV90(const uint8* src, int src_stride,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user