[SCM] libav/experimental: avisynth: set duration of audio streams

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:03:09 UTC 2014


The following commit has been merged in the experimental branch:
commit 7c377f0e74de8ab57f6baa64f3ec197c82104764
Author: Hendrik Leppkes <h.leppkes at gmail.com>
Date:   Thu May 8 09:51:15 2014 -0400

    avisynth: set duration of audio streams
    
    Signed-off-by: Anton Khirnov <anton at khirnov.net>

diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index a8d46a2..f94f7b7 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -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:

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list