]> git.sesse.net Git - vlc/commitdiff
avcodec: copy correct chroma plane in CopyFromYv12.
authorFelix Abecassis <felix.abecassis@gmail.com>
Wed, 23 Oct 2013 11:28:27 +0000 (11:28 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 5 Nov 2013 13:17:17 +0000 (14:17 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_chroma/copy.c

index e0823aaf69edecd3a7147dcc0e059b0b0602e6a1..5593d073a6e41cff202be331ffb7e26eb9ef272b 100644 (file)
@@ -412,5 +412,5 @@ void CopyFromYv12(picture_t *dst, uint8_t *src[3], size_t src_pitch[3],
      CopyPlane(dst->p[1].p_pixels, dst->p[1].i_pitch,
                src[1], src_pitch[1], width / 2, height / 2);
      CopyPlane(dst->p[2].p_pixels, dst->p[2].i_pitch,
-               src[1], src_pitch[2], width / 2, height / 2);
+               src[2], src_pitch[2], width / 2, height / 2);
 }