summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/avisynth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index a8d46a2c65..f94f7b786d 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -303,6 +303,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: