Commit 9e2997dd authored by Tristan Matthews's avatar Tristan Matthews

daala: encoder: fix stride

parent de7040d3
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment