ffmpeg | branch: master | Paul B Mahol <one...@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 <one...@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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog