This functionally already exists, but as pointed out in #9672 and #9673, requiring users to manually include filters is clumsy, error-prone and hard to use together with tools like ffplay.
To streamline ICC profile support, add a new AVCodecContext flag to globally enable reading and writing ICC profiles, automatically, for all appropriate media types.
Note that this commit only includes the new API. The implementation is split off to separate commits for readability.
e1a0f2df3d avcodec: add API for automatic handling of icc profiles
doc/APIchanges | 5 +++++
doc/codecs.texi | 2 ++
libavcodec/avcodec.h | 6 ++++++
libavcodec/options_table.h | 1 +
libavcodec/version.h | 2 +-
5 files changed, 15 insertions(+), 1 deletion(-)