]> git.sesse.net Git - vlc/commitdiff
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 9d66d7a16b24eb3158605999ee1bc7d6c8493adf..36dc9a6778bce25f687b4e114793598ea0e6725c 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 )