Unified · Split
| @@ -294,6 +294,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) · 293 unmodified lines | |||
| 294 | st->codec->channels = avs->vi->nchannels; | 294 | st->codec->channels = avs->vi->nchannels; |
| 295 | st->time_base = (AVRational) { 1, | 295 | st->time_base = (AVRational) { 1, |
| 296 | avs->vi->audio_samples_per_second }; | 296 | avs->vi->audio_samples_per_second }; |
| 297 | st->duration = avs->vi->num_audio_samples; | ||
| 297 | 298 | ||
| 298 | switch (avs->vi->sample_type) { | 299 | switch (avs->vi->sample_type) { |
| 299 | case AVS_SAMPLE_INT8: | 300 | case AVS_SAMPLE_INT8: |