diff options
author | Leo Izen <leo.izen@gmail.com> | 2023-12-12 14:41:01 -0500 |
---|---|---|
committer | Leo Izen <leo.izen@gmail.com> | 2023-12-22 22:07:35 -0500 |
commit | 4013b8d3f04966338267aecee2ac7d23ed2064b5 (patch) | |
tree | b7688fec528d38296aa96585005799e6d43e5d0c /libavutil/buffer.c | |
parent | 3d39b8d4e7ca43baafa3b4cd5784dd64197dd232 (diff) | |
download | ffmpeg-4013b8d3f04966338267aecee2ac7d23ed2064b5.tar.gz |
avcodec/pngdec: improve handling of bad cICP range tags
FFmpeg doesn't support tv-range RGB throughout most of its pipeline, so
we should keep the warning. However, in case something does support it
we should at least keep it tagged properly. Additionally, the encoder
writes this tag if the space is tagged as such so this makes a round
trip work as it should.
Also, PNG doesn't support nonzero matrices but we only warn and ignore
in that case, so we have no reason to error out for illegal cICP ranges
either (i.e. greater than 1).
Signed-off-by: Leo Izen <leo.izen@gmail.com>
Reported-by: Kacper Michajłow <kasper93@gmail.com>
Diffstat (limited to 'libavutil/buffer.c')
0 files changed, 0 insertions, 0 deletions