aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/jfdctint.c
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2023-02-01 12:04:30 -0500
committerLeo Izen <leo.izen@gmail.com>2023-02-08 08:50:34 -0500
commit5cf0bc42362ce54afa84103ab5e3ca28e695110f (patch)
tree16cc7022d26c17ea94a31971dd5f2d48057ba018 /libavcodec/jfdctint.c
parentc56f5be6782014fee165d361de1f548eaac7a272 (diff)
downloadffmpeg-5cf0bc42362ce54afa84103ab5e3ca28e695110f.tar.gz
avcodec/pngenc: avoid writing cICP when inappropriate
We parse the fallback cHRM on decode and correctly determine that we have BT.709 primaries, but unknown TRC. This causes us to write cICP where we shouldn't. Primaries without transfer can be handled entirely by cHRM, so we should only write cICP if we actually know the transfer function. Additionally, we should avoid writing cICP if there's an ICC profile because the spec says decoders must prioritize cICP over the ICC profile. Signed-off-by: Leo Izen <leo.izen@gmail.com>
Diffstat (limited to 'libavcodec/jfdctint.c')
0 files changed, 0 insertions, 0 deletions