diff options
author | Ronald S. Bultje <rbultje@google.com> | 2013-06-07 17:20:50 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2013-06-07 17:20:50 -0700 |
commit | 71701f3d40fb64a21420d0e0c15d4c204f5963cb (patch) | |
tree | 06742dec8cf1a05733c6e3528398591f1ec2b579 /vpx_scale | |
parent | 36f02bf3c15691e426b0a8e80d1fa0f2ae5afbb2 (diff) | |
download | libvpx-71701f3d40fb64a21420d0e0c15d4c204f5963cb.tar.gz libvpx-71701f3d40fb64a21420d0e0c15d4c204f5963cb.tar.bz2 libvpx-71701f3d40fb64a21420d0e0c15d4c204f5963cb.zip |
Align frame size to 8 instead of 16.
Change-Id: Ic606ef1b31e49963a779455a1e010a9ebb0f3f1f
Diffstat (limited to 'vpx_scale')
-rw-r--r-- | vpx_scale/generic/yv12config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx_scale/generic/yv12config.c b/vpx_scale/generic/yv12config.c index 632ff71f4..754a615a8 100644 --- a/vpx_scale/generic/yv12config.c +++ b/vpx_scale/generic/yv12config.c @@ -125,8 +125,8 @@ int vp9_realloc_frame_buffer(YV12_BUFFER_CONFIG *ybf, int width, int height, int ss_x, int ss_y, int border) { if (ybf) { - const int aligned_width = (width + 15) & ~15; - const int aligned_height = (height + 15) & ~15; + const int aligned_width = (width + 7) & ~7; + const int aligned_height = (height + 7) & ~7; const int y_stride = ((aligned_width + 2 * border) + 31) & ~31; const int yplane_size = (aligned_height + 2 * border) * y_stride; const int uv_width = aligned_width >> ss_x; |