Commit 8377c798 authored by Frank Barchard's avatar Frank Barchard

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 .
parent d1c6eb08
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 1565 Version: 1566
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 1565 #define LIBYUV_VERSION 1566
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -445,7 +445,7 @@ int I420ToNV21(const uint8* src_y, int src_stride_y, ...@@ -445,7 +445,7 @@ int I420ToNV21(const uint8* src_y, int src_stride_y,
return I420ToNV12(src_y, src_stride_y, return I420ToNV12(src_y, src_stride_y,
src_v, src_stride_v, src_v, src_stride_v,
src_u, src_stride_u, src_u, src_stride_u,
dst_y, src_stride_y, dst_y, dst_stride_y,
dst_vu, dst_stride_vu, dst_vu, dst_stride_vu,
width, height); width, height);
} }
......
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