summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2014-05-04 12:55:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 04:38:33 +0200
commitae8e2d7634e09fa57941c4c644ba1b6e4cf9eec6 (patch)
treec37c4cacfb638fc7b7444f67436807744ad560af
parent656fe7eccec074e18a266f713f3e1a80e734ebba (diff)
downloadffmpeg-streaming-ae8e2d7634e09fa57941c4c644ba1b6e4cf9eec6.zip
ffmpeg-streaming-ae8e2d7634e09fa57941c4c644ba1b6e4cf9eec6.tar.gz
avisynth: set duration of audio streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/avisynth.c1
1 files changed, 1 insertions, 0 deletions
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:
OpenPOWER on IntegriCloud