diff options
author | wm4 <wm4@nowhere> | 2020-04-23 13:00:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-04-23 13:24:35 +0200 |
commit | 28e4fe3010ecb0e1ddc964613c9205d7df95922f (patch) | |
tree | 407c8c5eb227f9df8328138545b7da08316c52bf /video/img_format.c | |
parent | fe2178160d6374136e6ca2f02f12d7f42f9cb531 (diff) | |
download | mpv-28e4fe3010ecb0e1ddc964613c9205d7df95922f.tar.bz2 mpv-28e4fe3010ecb0e1ddc964613c9205d7df95922f.tar.xz |
img_format: treat both monow and monob as RGB
This was inconsistent for unknown reason. monob was the way we wanted
it, and handling of monow was missing.
See the previous "img_format: add some mpv-only helper formats" commit.
Matters for the zimg wrapper.
Diffstat (limited to 'video/img_format.c')
-rw-r--r-- | video/img_format.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/video/img_format.c b/video/img_format.c index b1247747ea..30f84222c7 100644 --- a/video/img_format.c +++ b/video/img_format.c @@ -416,7 +416,9 @@ enum mp_csp mp_imgfmt_get_forced_csp(int imgfmt) if (pixdesc && (pixdesc->flags & AV_PIX_FMT_FLAG_RGB)) return MP_CSP_RGB; - if (pixfmt == AV_PIX_FMT_PAL8 || pixfmt == AV_PIX_FMT_MONOBLACK) + if (pixfmt == AV_PIX_FMT_PAL8 || + pixfmt == AV_PIX_FMT_MONOBLACK || + pixfmt == AV_PIX_FMT_MONOWHITE) return MP_CSP_RGB; return MP_CSP_AUTO; |