diff options
author | Frank Barchard <fbarchard@google.com> | 2016-01-14 17:38:54 -0800 |
---|---|---|
committer | Frank Barchard <fbarchard@google.com> | 2016-01-14 17:38:54 -0800 |
commit | 8377c798fb50ba438fb4ec136ea414f33eb0cfcf (patch) | |
tree | 157e0edc6f54458d4d0142eaff270fa3cd149713 /source/convert_from.cc | |
parent | d1c6eb0887e83fb03e00aa9c35be59a26e4735a0 (diff) | |
download | libyuv-8377c798fb50ba438fb4ec136ea414f33eb0cfcf.tar.gz |
Fix I420ToNV21 for wrong dst_stride_y parameter.
I420ToNV21 passes the wrong dst_stride_y when it calls I420ToNV12; parameter 8 (convert_from.cc:448) is src_stride_y but should be dst_stride_y. This causes image corruption when converting I420 -> NV21 with mismatched luminance strides.
R=dhrosa@google.com, harryjin@google.com
BUG=libyuv:547
Review URL: https://codereview.chromium.org/1582793008 .
Diffstat (limited to 'source/convert_from.cc')
-rw-r--r-- | source/convert_from.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/convert_from.cc b/source/convert_from.cc index 9c138d93..adce5299 100644 --- a/source/convert_from.cc +++ b/source/convert_from.cc @@ -445,7 +445,7 @@ int I420ToNV21(const uint8* src_y, int src_stride_y, return I420ToNV12(src_y, src_stride_y, src_v, src_stride_v, src_u, src_stride_u, - dst_y, src_stride_y, + dst_y, dst_stride_y, dst_vu, dst_stride_vu, width, height); } |