Commit 7c377f0e authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Anton Khirnov
Browse files

avisynth: set duration of audio streams


Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 4735784f
...@@ -303,6 +303,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) ...@@ -303,6 +303,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
st->codec->channels = avs->vi->nchannels; st->codec->channels = avs->vi->nchannels;
st->time_base = (AVRational) { 1, st->time_base = (AVRational) { 1,
avs->vi->audio_samples_per_second }; avs->vi->audio_samples_per_second };
st->duration = avs->vi->num_audio_samples;
switch (avs->vi->sample_type) { switch (avs->vi->sample_type) {
case AVS_SAMPLE_INT8: case AVS_SAMPLE_INT8:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment