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

Git pushed a commit to branch master
in repository ffmpeg.

commit 167daeea941eb715e6138af79d4bdcdc591c7f8d
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Sep 22 20:10:59 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 26 11:36:30 2026 +0000

    avformat/concatdec: split the probing of a file out of open_file
    
    Assisted-by: Claude
---
 libavformat/concatdec.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index c57d1b649a..77195cd7b2 100644
--- a/libavformat/concatdec.c
+++ b/libavformat/concatdec.c
@@ -333,7 +333,8 @@ static int64_t get_best_effort_duration(ConcatFile *file, 
AVFormatContext *avf)
     return AV_NOPTS_VALUE;
 }
 
-static int open_file(AVFormatContext *avf, unsigned fileno)
+/* opens the file and places it on the timeline, leaving the output streams 
alone */
+static int probe_file(AVFormatContext *avf, unsigned fileno)
 {
     ConcatContext *cat = avf->priv_data;
     ConcatFile *file = &cat->files[fileno];
@@ -376,7 +377,17 @@ static int open_file(AVFormatContext *avf, unsigned fileno)
     file->file_start_time = (cat->avf->start_time == AV_NOPTS_VALUE) ? 0 : 
cat->avf->start_time;
     file->file_inpoint = (file->inpoint == AV_NOPTS_VALUE) ? 
file->file_start_time : file->inpoint;
     file->duration = get_best_effort_duration(file, cat->avf);
+    return 0;
+}
+
+static int open_file(AVFormatContext *avf, unsigned fileno)
+{
+    ConcatContext *cat = avf->priv_data;
+    ConcatFile *file = &cat->files[fileno];
+    int ret = probe_file(avf, fileno);
 
+    if (ret < 0)
+        return ret;
     if (cat->segment_time_metadata) {
         av_dict_set_int(&file->metadata, "lavf.concatdec.start_time", 
file->start_time, 0);
         if (file->duration != AV_NOPTS_VALUE)

-- 
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