Browse Source

avisynth: set duration of audio streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Hendrik Leppkes Michael Niedermayer 11 years ago
parent
commit
ae8e2d7634
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/avisynth.c

+ 1
- 0
libavformat/avisynth.c View File

@@ -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:


Loading…
Cancel
Save