From ae8e2d7634e09fa57941c4c644ba1b6e4cf9eec6 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 4 May 2014 12:55:58 +0200 Subject: avisynth: set duration of audio streams Signed-off-by: Michael Niedermayer --- libavformat/avisynth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/avisynth.c') 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: -- cgit v1.1