[FFmpeg-devel] [PATCH] avcodec/libjxlenc: prevent color encoding from being set twice

Leo Izen leo.izen at gmail.com
Tue Apr 15 22:41:16 EEST 2025


On 4/13/25 06:12, Leo Izen wrote:
> We currently populate the color encoding bundle and then check to see
> if there's an ICC profile to attach, and set the color encoding bundle
> in either case. The ICC profile overrides the color encoding bundle, so
> we should not calculate enum-based color encoding if we have an ICC
> profile present. Fixes several unnecessary warnings from being emitted.
> 
> Signed-off-by: Leo Izen <leo.izen at gmail.com>
> ---
>   libavcodec/libjxlenc.c | 115 +++++++++++++++++++++--------------------
>   1 file changed, 59 insertions(+), 56 deletions(-)
> 
Will apply soon. (I maintain this section of code.)

- Leo Izen (Traneptora)



More information about the ffmpeg-devel mailing list