vlc/vlc-2.1 | branch: master | Felix Abecassis <[email protected]> | 
Wed Oct 23 11:28:27 2013 +0000| [bda92b706f1a7865f5ef1c100df5c7fff2ddbc95] | 
committer: Rémi Denis-Courmont

avcodec: copy correct chroma plane in CopyFromYv12.

Signed-off-by: Jean-Baptiste Kempf <[email protected]>
(cherry picked from commit 18e124ec4bcb679b17d0425f121106465d3a74f2)
Signed-off-by: Rémi Denis-Courmont <[email protected]>

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

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

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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to