diff options
author | Niklas Haas <git@haasn.dev> | 2022-01-11 21:03:27 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2022-01-11 23:45:08 +0200 |
commit | 9e2c0b8baa3f9ccba997129a1c1023f61611e4dd (patch) | |
tree | fff3693f77deeef422f91fb817c028ef54f76e63 /sub/sd_lavc.c | |
parent | 429402cb087f3a052cb9645af1e42156fd413c6c (diff) | |
download | mpv-9e2c0b8baa3f9ccba997129a1c1023f61611e4dd.tar.bz2 mpv-9e2c0b8baa3f9ccba997129a1c1023f61611e4dd.tar.xz |
sub: rename SUBBITMAP_RGBA to SUBBITMAP_BGRA
This was a misnomer, the actual channel order is IMGFMT_BGRA (as the
comment explicitly point out). Rename the enum for consistency.
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index e8da942a76..ce0ef11a0a 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -433,7 +433,7 @@ static struct sub_bitmaps *get_bitmaps(struct sd *sd, struct mp_osd_res d, res->packed = current->data; res->packed_w = current->bound_w; res->packed_h = current->bound_h; - res->format = SUBBITMAP_RGBA; + res->format = SUBBITMAP_BGRA; double video_par = 0; if (priv->avctx->codec_id == AV_CODEC_ID_DVD_SUBTITLE && |