[vlc-devel] [PATCH] avcodec: copy correct chroma plane in CopyFromYv12.
Rafaël Carré
funman at videolan.org
Wed Oct 23 15:46:16 CEST 2013
Hello,
Le 23/10/2013 14:28, Felix Abecassis a écrit :
> ---
> 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);
> }
>
LGTM, thanks.
How can I reproduce the problem just to check?
When I use the hw decoder on h264 files it gives me yuv420.
More information about the vlc-devel
mailing list