vlc | branch: master | Steve Lhomme <[email protected]> | Wed May 24 15:19:01 2017 +0200| [5bccc6bbbec98d34cf330e35796b522e07d9a262] | committer: Jean-Baptiste Kempf
dxa9: the texture height is given by the texture description it doesn't matter what the format says Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bccc6bbbec98d34cf330e35796b522e07d9a262 --- modules/video_chroma/dxa9.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/video_chroma/dxa9.c b/modules/video_chroma/dxa9.c index eff8d7e214..ec1e2d27fc 100644 --- a/modules/video_chroma/dxa9.c +++ b/modules/video_chroma/dxa9.c @@ -95,9 +95,9 @@ static void DXA9_YV12(filter_t *p_filter, picture_t *src, picture_t *dst) uint8_t *plane[3] = { (uint8_t*)lock.pBits, - (uint8_t*)lock.pBits + pitch[0] * src->format.i_height, - (uint8_t*)lock.pBits + pitch[0] * src->format.i_height - + pitch[1] * src->format.i_height / 2, + (uint8_t*)lock.pBits + pitch[0] * desc.Height, + (uint8_t*)lock.pBits + pitch[0] * desc.Height + + pitch[1] * desc.Height / 2, }; if (imc3) { @@ -110,7 +110,7 @@ static void DXA9_YV12(filter_t *p_filter, picture_t *src, picture_t *dst) } else if (desc.Format == MAKEFOURCC('N','V','1','2')) { uint8_t *plane[2] = { lock.pBits, - (uint8_t*)lock.pBits + lock.Pitch * src->format.i_height + (uint8_t*)lock.pBits + lock.Pitch * desc.Height }; size_t pitch[2] = { lock.Pitch, @@ -144,7 +144,7 @@ static void DXA9_NV12(filter_t *p_filter, picture_t *src, picture_t *dst) if (desc.Format == MAKEFOURCC('N','V','1','2')) { uint8_t *plane[2] = { lock.pBits, - (uint8_t*)lock.pBits + lock.Pitch * src->format.i_height + (uint8_t*)lock.pBits + lock.Pitch * desc.Height }; size_t pitch[2] = { lock.Pitch, _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
