]> granicus.if.org Git - libvpx/commitdiff
Fix the vpxenc mismatch problem due to seperate
authorhkuang <hkuang@google.com>
Wed, 22 Jan 2014 22:58:59 +0000 (14:58 -0800)
committerhkuang <hkuang@google.com>
Wed, 22 Jan 2014 22:58:59 +0000 (14:58 -0800)
the boarder size for encoder and decoder.

Change-Id: I7291a9e06035d1533202d7a75ab40abfc1131342

vpxenc.c

index 396e43dc9d96b116c9beac8df016e49d024536d6..f19300acfcc411866729ecd417936e7b05c4a719 100644 (file)
--- a/vpxenc.c
+++ b/vpxenc.c
@@ -833,8 +833,8 @@ static int compare_img(vpx_image_t *img1, vpx_image_t *img2)
   unsigned int i;
 
   match &= (img1->fmt == img2->fmt);
-  match &= (img1->w == img2->w);
-  match &= (img1->h == img2->h);
+  match &= (img1->d_w == img2->d_w);
+  match &= (img1->d_h == img2->d_h);
 
   for (i = 0; i < img1->d_h; i++)
     match &= (memcmp(img1->planes[VPX_PLANE_Y]+i*img1->stride[VPX_PLANE_Y],