🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #4172

Bug#1142258: mpv: vo=x11 wrongly swaps colors on big-endian

#4172
From: Sebastian Ramacher
Date: Wed, 11 Nov 2026 18:40
113 lines
5505 bytes
On 2026-07-16 22:21:11 +0200, John Ogness wrote:
> Package: mpv
> Version: 0.41.0-2+b2
> Severity: important
> X-Debbugs-Cc: john.ogness@linutronix.de
> 
> Dear Maintainer,
> 
> I am on a big-endian architecture. When playing video using x11 video output
> backend, the colors are swapped (even for the OSD controls). I tracked this
> down to the function:
> 
>    video/out/vo_x11.c:resize()
> 
> In the "MP_SELECT_LE_BE(0, 1) block", the colors are being swapped.
> 
> By commenting out this block, the colors are correct!
> 
> I am guessing that the assumption in the comment above that block is wrong:
> 
>    // desc.comps[] uses little endian bit offsets
> 
> I am happy to take this upstream, if you could point me in the right
> direction.

Please do. You can file upstream issues at
https://github.com/mpv-player/mpv.

Cheers

> 
> Thanks!
> 
> John Ogness
> 
> 
> 
> -- System Information:
> Debian Release: forky/sid
>   APT prefers unreleased
>   APT policy: (500, 'unreleased'), (500, 'unstable')
> Architecture: ppc64
> 
> Kernel: Linux 7.2.0-rc3+ (SMP w/2 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_WARN
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages mpv depends on:
> ii  libarchive13t64           3.8.8-2
> ii  libasound2t64             1.2.16.1-1
> ii  libass9                   1:0.17.5-1
> ii  libavcodec62              7:8.1.2-2+b1
> ii  libavdevice62             7:8.1.2-2+b1
> ii  libavfilter11             7:8.1.2-2+b1
> ii  libavformat62             7:8.1.2-2+b1
> ii  libavutil60               7:8.1.2-2+b1
> ii  libbluray3                1:1.4.1-2
> ii  libc6                     2.42-17
> ii  libcdio-cdda2t64          10.2+2.0.2-2+b2
> ii  libcdio-paranoia2t64      10.2+2.0.2-2+b2
> ii  libcdio19t64              2.2.0-4.1
> ii  libdisplay-info3          0.3.0-1+b1
> ii  libdrm2                   2.4.134-3
> ii  libdvdnav4                7.0.0-2+b1
> ii  libegl1                   1.7.0-3+b1
> ii  libgbm1                   25.0.7-2
> ii  libjack0 [libjack-0.125]  1:0.126.0-6
> ii  libjpeg62-turbo           1:3.1.3-4
> ii  liblcms2-2                2.19.1-1
> ii  liblua5.2-0               5.2.4-4
> ii  libmujs3                  1.3.9-1
> ii  libpipewire-0.3-0t64      1.6.8-1
> ii  libplacebo360             7.360.1-1
> ii  libpulse0                 17.0+dfsg1-2.1+b1
> ii  librubberband3            4.0.0+dfsg-2
> ii  libsixel1                 1:1.8.7-r2-1
> ii  libsndio7.0               1.10.0-0.2+b2
> ii  libswresample6            7:8.1.2-2+b1
> ii  libswscale9               7:8.1.2-2+b1
> ii  libuchardet0              0.0.8-2+b2
> ii  libva-drm2                2.24.1-2
> ii  libva-wayland2            2.24.1-2
> ii  libva-x11-2               2.24.1-2
> ii  libva2                    2.24.1-2
> ii  libvdpau1                 1.5-4+b1
> ii  libvulkan1                1.4.341.0-1
> ii  libwayland-client0        1.25.0-2
> ii  libwayland-cursor0        1.25.0-2
> ii  libwayland-egl1           1.25.0-2
> ii  libx11-6                  2:1.8.13-1
> ii  libxext6                  2:1.3.4-1+b4
> ii  libxfixes3                1:6.0.0-2+b4
> ii  libxkbcommon0             1.13.1-1
> ii  libxpresent1              1.0.1-1+b3
> ii  libxrandr2                2:1.5.4-1+b4
> ii  libxss1                   1:1.2.3-1+b3
> ii  libxv1                    2:1.0.13-1+b1
> ii  libzimg2                  3.0.6+ds1-2
> ii  zlib1g                    1:1.3.dfsg+really1.3.2-3
> 
> Versions of packages mpv recommends:
> ii  xdg-utils  1.2.1-2
> ii  yt-dlp     2026.07.04-1
> 
> mpv suggests no packages.
> 
> -- no debconf information
> 

-- 
Sebastian Ramacher
Technical Details
Message-ID: <NYloJ-bh7k-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NhASt-59Fd-3@gated-at.bofh.it> <NhASt-59Fd-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastian Ramacher <sramacher@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1142258: mpv: vo=x11 wrongly swaps colors on big-endian
Date: Wed, 11 Nov 2026 19:40:01 +0100
Message-ID: <NYloJ-bh7k-13@gated-at.bofh.it>
References: <NhASt-59Fd-3@gated-at.bofh.it> <NhASt-59Fd-3@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 11 18:37:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1142258@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-multimedia@lists.debian.org
X-Debian-Pr-Message: followup 1142258
X-Debian-Pr-Package: mpv
X-Debian-Pr-Source: mpv
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: sramacher
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002085
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 113
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 11 Nov 2026 19:35:40 +0100
X-Original-Message-ID: <avS1fFWH8AzTierX@ramacher.at>
X-Original-References: <178423327118.7305.17927764428732254919.reportbug@g5power.fn.ogness.net> <178423327118.7305.17927764428732254919.reportbug@g5power.fn.ogness.net>