[vlc-commits] avcodec: copy correct chroma plane in CopyFromYv12.

Felix Abecassis git at videolan.org
Tue Nov 5 14:17:22 CET 2013


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Wed Oct 23 11:28:27 2013 +0000| [18e124ec4bcb679b17d0425f121106465d3a74f2] | committer: Jean-Baptiste Kempf

avcodec: copy correct chroma plane in CopyFromYv12.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18e124ec4bcb679b17d0425f121106465d3a74f2
---

 modules/video_chroma/copy.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index e0823aa..5593d07 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -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);
 }



More information about the vlc-commits mailing list