This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 77298c29bc avformat/mov: check return value of mov_read_iref_cdsc()
77298c29bc is described below

commit 77298c29bca9284647812c0990ab7cdfabb0e302
Author:     James Almer <[email protected]>
AuthorDate: Thu Mar 5 09:55:43 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Thu Mar 5 09:57:28 2026 -0300

    avformat/mov: check return value of mov_read_iref_cdsc()
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/mov.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3bc8187307..1ae281440e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -9281,6 +9281,8 @@ static int mov_read_iref_cdsc(MOVContext *c, AVIOContext 
*pb, uint32_t type, int
 static int mov_read_iref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
 {
     int version = avio_r8(pb);
+    int ret;
+
     avio_rb24(pb); // flags
     atom.size -= 4;
 
@@ -9300,15 +9302,15 @@ static int mov_read_iref(MOVContext *c, AVIOContext 
*pb, MOVAtom atom)
         type = avio_rl32(pb);
         switch (type) {
         case MKTAG('d','i','m','g'):
-        {
-            int ret = mov_read_iref_dimg(c, pb, version);
+            ret = mov_read_iref_dimg(c, pb, version);
             if (ret < 0)
                 return ret;
             break;
-        }
         case MKTAG('c','d','s','c'):
         case MKTAG('t','h','m','b'):
-            mov_read_iref_cdsc(c, pb, type, version);
+            ret = mov_read_iref_cdsc(c, pb, type, version);
+            if (ret < 0)
+                return ret;
             break;
         default:
             av_log(c->fc, AV_LOG_DEBUG, "Unknown iref type %s size 
%"PRIu32"\n",

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

Reply via email to