Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-10-30 14:07:44 +0300
committerPaul B Mahol <onemda@gmail.com>2015-11-02 12:53:05 +0300
commit0cb09b0511f438f4e3a6859f9d537f123fa1ae64 (patch)
treea910eac8b0f01d33036465feca97b00db444e97c /libavformat/segafilm.c
parente6cccf9daa64e36ccdd575fdfd36b7fdb2661840 (diff)
avformat/segafilm: set audio stream duration
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/segafilm.c')
-rw-r--r--libavformat/segafilm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index b4f9b3d825..9c346e6b60 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;