diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-04-07 18:07:57 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2014-04-21 23:00:09 +0400 |
commit | c6612d79ac724c9090d200d84077a1d94a7c7586 (patch) | |
tree | 442e5c8242768a7ca69278b6647c25ef6c7e901b | |
parent | dc2042f40331e858270718fd4bf6172c2b87097e (diff) |
avisynth: set duration of audio streamsmpc-hc-1.7.5-1
-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 b837bd9abc..c01d7e484c 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: |