]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avisynth.c
librtmp: append the correct field to the string
[ffmpeg] / libavformat / avisynth.c
index a8d46a2c65448dcb333a5de3687a1de8e9919ec6..f94f7b786d73543c2d476bb7c7809faf5cbb0e96 100644 (file)
@@ -303,6 +303,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: