[FFmpeg-cvslog] lavfi/afade * biquads: call av_frame_copy_props()
    Paul B Mahol 
    git at videolan.org
       
    Wed Apr  3 13:11:03 CEST 2013
    
    
  
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Apr  3 11:10:00 2013 +0000| [6fcb4ae1d81dd104598001f55c80864c08d848af] | committer: Paul B Mahol
lavfi/afade * biquads: call av_frame_copy_props()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6fcb4ae1d81dd104598001f55c80864c08d848af
---
 libavfilter/af_afade.c   |    2 +-
 libavfilter/af_biquads.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_afade.c b/libavfilter/af_afade.c
index 1134849..7f68327 100644
--- a/libavfilter/af_afade.c
+++ b/libavfilter/af_afade.c
@@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
         out_buf = ff_get_audio_buffer(inlink, nb_samples);
         if (!out_buf)
             return AVERROR(ENOMEM);
-        out_buf->pts = buf->pts;
+        av_frame_copy_props(out_buf, buf);
     }
 
     if ((!afade->type && (cur_sample + nb_samples < afade->start_sample)) ||
diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c
index a3acd04..2db0e02 100644
--- a/libavfilter/af_biquads.c
+++ b/libavfilter/af_biquads.c
@@ -406,7 +406,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
         out_buf = ff_get_audio_buffer(inlink, nb_samples);
         if (!out_buf)
             return AVERROR(ENOMEM);
-        out_buf->pts = buf->pts;
+        av_frame_copy_props(out_buf, buf);
     }
 
     for (ch = 0; ch < av_frame_get_channels(buf); ch++)
    
    
More information about the ffmpeg-cvslog
mailing list