daala: encoder: fix stride
authorTristan Matthews <le.businessman@gmail.com>
Fri, 26 Sep 2014 11:48:04 +0000 (07:48 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 26 Sep 2014 13:47:47 +0000 (09:47 -0400)
modules/codec/daala.c

index 9d66d7a..36dc9a6 100644 (file)
@@ -686,8 +686,7 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
         img.planes[i].xdec = p_sys->di.plane_info[i].xdec;
         img.planes[i].ydec = p_sys->di.plane_info[i].ydec;
         img.planes[i].xstride = 1;
-        img.planes[i].ystride = (img.width
-     + (1 << img.planes[i].xdec) - 1)  >>  img.planes[i].xdec;
+        img.planes[i].ystride = p_pict->p[i].i_pitch;
     }
 
     if( daala_encode_img_in( p_sys->dcx, &img, 0 ) < 0 )