[FFmpeg-cvslog] avformat/segafilm: set audio stream duration

Paul B Mahol git at videolan.org
Mon Nov 2 11:07:44 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Oct 30 12:07:44 2015 +0100| [0cb09b0511f438f4e3a6859f9d537f123fa1ae64] | committer: Paul B Mahol

avformat/segafilm: set audio stream duration

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0cb09b0511f438f4e3a6859f9d537f123fa1ae64
---

 libavformat/segafilm.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index b4f9b3d..9c346e6 100644
--- a/libavformat/segafilm.c
+++ b/libavformat/segafilm.c
@@ -247,6 +247,9 @@ static int film_read_header(AVFormatContext *s)
         }
     }
 
+    if (film->audio_type)
+        s->streams[film->audio_stream_index]->duration = audio_frame_counter;
+
     film->current_sample = 0;
 
     return 0;



More information about the ffmpeg-cvslog mailing list