avisynth: set duration of audio streams

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/68/head
Hendrik Leppkes 11 years ago committed by Anton Khirnov
parent 4735784f1c
commit 7c377f0e74
  1. 1
      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:

Loading…
Cancel
Save