Commit ee351bc2 authored by Frank Barchard's avatar Frank Barchard

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.
parent 4389070d
......@@ -838,7 +838,9 @@ void TransposePlane(const uint8* src, int src_stride,
i -= 8;
}
TransposeWxH_C(src, src_stride, dst, dst_stride, width, i);
if (i > 0) {
TransposeWxH_C(src, src_stride, dst, dst_stride, width, i);
}
}
LIBYUV_API
......@@ -1037,10 +1039,12 @@ void TransposeUV(const uint8* src, int src_stride,
i -= 8;
}
TransposeUVWxH_C(src, src_stride,
dst_a, dst_stride_a,
dst_b, dst_stride_b,
width, i);
if (i > 0) {
TransposeUVWxH_C(src, src_stride,
dst_a, dst_stride_a,
dst_b, dst_stride_b,
width, i);
}
}
LIBYUV_API
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment