diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-08-07 17:10:34 +0200 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2023-08-07 18:22:41 +0200 |
commit | 1b10d9dd9cbc4164ed0ddbba0b64e64e638f1a1f (patch) | |
tree | fdd9ad4cf94c6b8a2904ba3b6424c0e913b391f2 /video/mp_image_pool.h | |
parent | 35a6b26b780af4befa4da06a63bebf95571d1279 (diff) | |
download | mpv-1b10d9dd9cbc4164ed0ddbba0b64e64e638f1a1f.tar.bz2 mpv-1b10d9dd9cbc4164ed0ddbba0b64e64e638f1a1f.tar.xz |
mp_image: properly infer color levels for some pixfmts
ffmpeg does not tag yuv levels for GRAY formats, but apparently they
should be infered as full range. Instead of defaulting to limited range
always. Fixes (M)JPEG playback.
This mimic ffmpeg's behaviour.
See: https://github.com/FFmpeg/FFmpeg/blob/d295b6b6936c9c691a4871851fdaec04d407e54b/libswscale/utils.c#L926-L962
Fixes: #12089
Diffstat (limited to 'video/mp_image_pool.h')
0 files changed, 0 insertions, 0 deletions