Commit 18e124ec authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

avcodec: copy correct chroma plane in CopyFromYv12.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7f21b02a
...@@ -412,5 +412,5 @@ void CopyFromYv12(picture_t *dst, uint8_t *src[3], size_t src_pitch[3], ...@@ -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, CopyPlane(dst->p[1].p_pixels, dst->p[1].i_pitch,
src[1], src_pitch[1], width / 2, height / 2); src[1], src_pitch[1], width / 2, height / 2);
CopyPlane(dst->p[2].p_pixels, dst->p[2].i_pitch, 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);
} }
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