diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-05-08 09:51:15 -0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-05-16 14:41:02 +0200 |
commit | 7c377f0e74de8ab57f6baa64f3ec197c82104764 (patch) | |
tree | 020c5112488f61ca4965907687b5376a8400987c /libavformat | |
parent | 4735784f1ced27026fbeada5fd31505132e565e9 (diff) | |
download | ffmpeg-7c377f0e74de8ab57f6baa64f3ec197c82104764.tar.gz |
avisynth: set duration of audio streams
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avisynth.c | 1 |
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: |