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

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

commit cda1e5f25ec2393c1a25f98cacc8e590a2f8dc35
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Nov 17 00:35:13 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:43 2026 +0100

    avformat/mov: grow the buffer of discarded frame durations geometrically
    
    Timeout Replicated through API
    
    Fixes: Timeout
    Fixes: 
583599147/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5690659563175936
    Fixes: 2vgyxUjJ1Nn1
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 32a993bed1d3181184936c7370e24f51c184ec6a)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mov.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 03ead5d957..48b80a15e6 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4732,13 +4732,12 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
                     av_log(mov->fc, AV_LOG_DEBUG, "drop a frame at curr_cts: 
%"PRId64" @ %"PRId64"\n", curr_cts, index);
 
                     if (edit_list_start_encountered == 0) {
-                        num_discarded_begin++;
-                        if (av_reallocp_array(&frame_duration_buffer, 
num_discarded_begin,
-                                              sizeof(*frame_duration_buffer)) 
< 0) {
+                        if (!av_dynarray2_add((void **)&frame_duration_buffer, 
&num_discarded_begin,
+                                              sizeof(*frame_duration_buffer),
+                                              (const uint8_t 
*)&frame_duration)) {
                             av_log(mov->fc, AV_LOG_ERROR, "Cannot reallocate 
frame duration buffer\n");
                             break;
                         }
-                        frame_duration_buffer[num_discarded_begin - 1] = 
frame_duration;
 
                         // Increment skip_samples for the first non-zero audio 
edit list
                         if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to