[vlc-commits] daala: encoder: fix stride

Tristan Matthews git at videolan.org
Fri Sep 26 15:48:10 CEST 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Fri Sep 26 07:48:04 2014 -0400| [9e2997dd6b6dfe42faa951d07c9cdbbf95e26abf] | committer: Tristan Matthews

daala: encoder: fix stride

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e2997dd6b6dfe42faa951d07c9cdbbf95e26abf
---

 modules/codec/daala.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/daala.c b/modules/codec/daala.c
index 9d66d7a..36dc9a6 100644
--- a/modules/codec/daala.c
+++ b/modules/codec/daala.c
@@ -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 )



More information about the vlc-commits mailing list