[vlc-devel] [PATCH] avcodec: copy correct chroma plane in CopyFromYv12.
Felix Abecassis
felix.abecassis at gmail.com
Wed Oct 23 14:28:27 CEST 2013
---
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);
}
--
1.8.3.2
More information about the vlc-devel
mailing list