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

Git pushed a commit to branch release/6.1
in repository ffmpeg.

commit 14828aff6c5d638e19b88ca75ee905c8ee3cddea
Author:     Eugene Zemtsov <[email protected]>
AuthorDate: Thu Oct 24 18:54:10 2024 -0700
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Jun 20 17:42:28 2026 +0200

    avformat/mov: fix crash when trying to get a fragment time for a 
non-existing fragment
    
    Reviewed-by: Dale Curtis <[email protected]>
    Reviewed-by: Marth64 <[email protected]>
    Signed-off-by: Marth64 <[email protected]>
    (cherry picked from commit 7c9bde1d0d26ffa74b6791666c3a27c6d5d5019f)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mov.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 82fd75e8cf..35afbbc3fd 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1384,6 +1384,8 @@ static int64_t get_frag_time(AVFormatContext *s, AVStream 
*dst_st,
     // to fragments that referenced this stream in the sidx
     if (sc->has_sidx) {
         frag_stream_info = get_frag_stream_info(frag_index, index, dst_st->id);
+        if (!frag_stream_info)
+            return AV_NOPTS_VALUE;
         if (frag_stream_info->sidx_pts != AV_NOPTS_VALUE)
             return frag_stream_info->sidx_pts;
         if (frag_stream_info->first_tfra_pts != AV_NOPTS_VALUE)

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

Reply via email to