[vlc-commits] chroma:copy: use the proper defines to access the planes in picture_SwapUV()
Steve Lhomme
git at videolan.org
Mon Feb 5 19:21:10 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 5 14:17:09 2018 +0100| [76875393e2acb0906edb067d381332ba43fecbc3] | committer: Jean-Baptiste Kempf
chroma:copy: use the proper defines to access the planes in picture_SwapUV()
(cherry picked from commit c8746a49d8b95ba4c29af0047ce9f75dd5de1dc9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=76875393e2acb0906edb067d381332ba43fecbc3
---
modules/video_chroma/copy.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index cb45e23c7b..50885aee74 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -832,9 +832,9 @@ void picture_SwapUV(picture_t *picture)
{
assert(picture->i_planes == 3);
- plane_t tmp_plane = picture->p[1];
- picture->p[1] = picture->p[2];
- picture->p[2] = tmp_plane;
+ plane_t tmp_plane = picture->p[U_PLANE];
+ picture->p[U_PLANE] = picture->p[V_PLANE];
+ picture->p[V_PLANE] = tmp_plane;
}
int picture_UpdatePlanes(picture_t *picture, uint8_t *data, unsigned pitch)
More information about the vlc-commits
mailing list