Commit c7b8f0b8 authored by Rafaël Carré's avatar Rafaël Carré

swscale: handle 4:2:0 and 4:2:2 YUVA formats

parent 11fb6b16
......@@ -254,6 +254,14 @@ static void FixParameters( int *pi_fmt, bool *pb_has_a, bool *pb_swap_uv, vlc_fo
{
switch( fmt )
{
case VLC_CODEC_YUV422A:
*pi_fmt = PIX_FMT_YUV422P;
*pb_has_a = true;
break;
case VLC_CODEC_YUV420A:
*pi_fmt = PIX_FMT_YUV420P;
*pb_has_a = true;
break;
case VLC_CODEC_YUVA:
*pi_fmt = PIX_FMT_YUV444P;
*pb_has_a = true;
......
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