Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
9b4a4753 by Jeffrey Knockel at 2024-01-06T08:25:10+00:00
swscale: don't map to native-endian formats
Map to formats that produce the same byte order regardless of client
endianness.
- - - - -
1 changed file:
- modules/video_chroma/swscale.c
Changes:
=====================================
modules/video_chroma/swscale.c
=====================================
@@ -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:
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/9b4a4753ececcb8e98349f81b3a303370061cd1f
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/9b4a4753ececcb8e98349f81b3a303370061cd1f
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits