Commit 76875393 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

chroma:copy: use the proper defines to access the planes in picture_SwapUV()

(cherry picked from commit c8746a49)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent bbd85487
......@@ -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)
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