[FFmpeg-devel] [PATCH 2/3] lavfi/volume: use copy props helper instead of incomplete manual code.

Clément Bœsch ubitux at gmail.com
Sun Mar 31 12:04:11 CEST 2013


On Fri, Mar 29, 2013 at 12:57:47PM +0100, Hendrik Leppkes wrote:
> On Fri, Mar 29, 2013 at 12:27 PM, Clément Bœsch <ubitux at gmail.com> wrote:
> 
> > ---
> >  libavfilter/af_volume.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
> > index 447e8d5..0dccac8 100644
> > --- a/libavfilter/af_volume.c
> > +++ b/libavfilter/af_volume.c
> > @@ -234,7 +234,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 (vol->precision != PRECISION_FIXED || vol->volume_i > 0) {
> > --
> > 1.8.2
> >
> >
> LGTM

Pushed.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130331/89542130/attachment.asc>


More information about the ffmpeg-devel mailing list