summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.h
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-08-07 17:10:34 +0200
committerNiklas Haas <github-daiK1o@haasn.dev>2023-08-07 18:22:41 +0200
commit1b10d9dd9cbc4164ed0ddbba0b64e64e638f1a1f (patch)
treefdd9ad4cf94c6b8a2904ba3b6424c0e913b391f2 /video/sws_utils.h
parent35a6b26b780af4befa4da06a63bebf95571d1279 (diff)
downloadmpv-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/sws_utils.h')
0 files changed, 0 insertions, 0 deletions