diff options
author | Niklas Haas <git@haasn.dev> | 2023-09-27 11:49:07 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2023-10-03 00:28:50 +0200 |
commit | 443471356f2807d4b5657f61c4081cb65ccdd597 (patch) | |
tree | e91536a93f8349ebf27f209c2ad43d91d858e028 /libavfilter/vf_iccdetect.c | |
parent | beac4a999cfb0f6f67cb29528308208ef540273a (diff) | |
download | ffmpeg-443471356f2807d4b5657f61c4081cb65ccdd597.tar.gz |
avfilter/vf_iccdetect: use ff_icc_profile_sanitize
Diffstat (limited to 'libavfilter/vf_iccdetect.c')
-rw-r--r-- | libavfilter/vf_iccdetect.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_iccdetect.c b/libavfilter/vf_iccdetect.c index 5288b0320d..16eacbbb56 100644 --- a/libavfilter/vf_iccdetect.c +++ b/libavfilter/vf_iccdetect.c @@ -93,7 +93,9 @@ static int iccdetect_filter_frame(AVFilterLink *inlink, AVFrame *frame) if (!profile) return AVERROR_INVALIDDATA; - ret = ff_icc_profile_read_primaries(&s->icc, profile, &coeffs); + ret = ff_icc_profile_sanitize(&s->icc, profile); + if (!ret) + ret = ff_icc_profile_read_primaries(&s->icc, profile, &coeffs); if (!ret) ret = ff_icc_profile_detect_transfer(&s->icc, profile, &s->profile_trc); cmsCloseProfile(profile); |