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

Hendrik Leppkes h.leppkes at gmail.com
Fri Mar 29 12:57:47 CET 2013


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


More information about the ffmpeg-devel mailing list