The branch, master has been updated
       via  0941646182ba59daa452885f508b87bef2090e46 (commit)
      from  e85947576c517675a12b6dd6615be0079d56e11a (commit)


- Log -----------------------------------------------------------------
commit 0941646182ba59daa452885f508b87bef2090e46
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Oct 28 21:40:50 2025 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Oct 28 21:40:50 2025 +0100

    avcodec/fflcms2: Don't access inexistent array elements
    
    This would happen if one of the extended transfer characteristics is in
    use (currently only AVCOL_TRC_V_LOG).
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>

diff --git a/libavcodec/fflcms2.c b/libavcodec/fflcms2.c
index c7b944a02f..3c7f3dc07f 100644
--- a/libavcodec/fflcms2.c
+++ b/libavcodec/fflcms2.c
@@ -50,10 +50,7 @@ void ff_icc_context_uninit(FFIccContext *s)
 static int get_curve(FFIccContext *s, enum AVColorTransferCharacteristic trc,
                      cmsToneCurve **out_curve)
 {
-    if ((trc >= AVCOL_TRC_NB && trc < AVCOL_TRC_EXT_BASE) || trc >= 
AVCOL_TRC_EXT_NB)
-        return AVERROR_INVALIDDATA;
-
-    if (s->curves[trc])
+    if ((unsigned)trc < AVCOL_TRC_NB && s->curves[trc])
         goto done;
 
     switch (trc) {

-----------------------------------------------------------------------

Summary of changes:
 libavcodec/fflcms2.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)


hooks/post-receive
-- 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to