Skip to content
Snippets Groups Projects
Commit 9b4a4753 authored by Jeffrey Knockel's avatar Jeffrey Knockel Committed by Rémi Denis-Courmont
Browse files

swscale: don't map to native-endian formats

Map to formats that produce the same byte order regardless of client
endianness.
parent 2ad7165b
No related branches found
No related tags found
1 merge request!4740swscale: don't map to native-endian formats
Pipeline #423781 passed with stage
in 12 minutes and 20 seconds
......@@ -282,19 +282,19 @@ static void FixParameters( enum AVPixelFormat *pi_fmt, bool *pb_has_a, vlc_fourc
*pb_has_a = true;
break;
case VLC_CODEC_RGBA:
*pi_fmt = AV_PIX_FMT_BGR32;
*pi_fmt = AV_PIX_FMT_RGBA;
*pb_has_a = true;
break;
case VLC_CODEC_ARGB:
*pi_fmt = AV_PIX_FMT_BGR32_1;
*pi_fmt = AV_PIX_FMT_ARGB;
*pb_has_a = true;
break;
case VLC_CODEC_BGRA:
*pi_fmt = AV_PIX_FMT_RGB32;
*pi_fmt = AV_PIX_FMT_BGRA;
*pb_has_a = true;
break;
case VLC_CODEC_ABGR:
*pi_fmt = AV_PIX_FMT_RGB32_1;
*pi_fmt = AV_PIX_FMT_ABGR;
*pb_has_a = true;
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment