[vlc-commits] chroma:copy: use the proper defines to access the planes in picture_SwapUV()
Steve Lhomme
git at videolan.org
Mon Feb 5 14:17:48 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 5 14:17:09 2018 +0100| [c8746a49d8b95ba4c29af0047ce9f75dd5de1dc9] | committer: Steve Lhomme
chroma:copy: use the proper defines to access the planes in picture_SwapUV()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c8746a49d8b95ba4c29af0047ce9f75dd5de1dc9
---
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 35721ebc93..626dc34f05 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