[FFmpeg-cvslog] avisynth: set duration of audio streams

Hendrik Leppkes git at videolan.org
Mon May 5 05:00:42 CEST 2014


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun May  4 12:55:58 2014 +0200| [ae8e2d7634e09fa57941c4c644ba1b6e4cf9eec6] | committer: Michael Niedermayer

avisynth: set duration of audio streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/avisynth.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index b837bd9..c01d7e4 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -294,6 +294,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
     st->codec->channels    = avs->vi->nchannels;
     st->time_base          = (AVRational) { 1,
                                             avs->vi->audio_samples_per_second };
+    st->duration           = avs->vi->num_audio_samples;
 
     switch (avs->vi->sample_type) {
     case AVS_SAMPLE_INT8:



More information about the ffmpeg-cvslog mailing list