mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avisynth: set duration of audio streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
656fe7ecce
commit
ae8e2d7634
@ -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…
Reference in New Issue
Block a user