[MPlayer-dev-eng] [PATCH] Replace deprecated avcodec resamples with libswresample in af_lavcresample

Roberto Togni rxt at rtogni.it
Mon Aug 10 23:29:57 CEST 2015


On Mon, 10 Aug 2015 12:18:45 +0200
wm4 <nfxjfg at googlemail.com> wrote:

> On Mon, 10 Aug 2015 01:49:12 +0200
> Roberto Togni <rxt at rtogni.it> wrote:
> 
> > Hello,
> >  this patch updates af_lavcresample to use libswresample instead of the
> > deprecated avcodec resampler (resample2).
> > 
> > It works for me; please test, it especially with multichannel setup.
> 
> This shouldn't change anything about multichannel. Since the input and
> output layouts are the same, libswresample will not remix the channels.
> 
> Also, you should use av_malloc to allocate aligned buffers for
> libswresample, and BUFFER_PADDING doesn't look like the correct
> constant to use.

Thanks for the feedback.
New version attached, with aligned allocation and minimal buffer
padding.

I'll apply shortly if nobody complains.

Ciao,
 Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: af_lavcresample.c.diff
Type: text/x-patch
Size: 5047 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20150810/21d116ef/attachment.bin>


More information about the MPlayer-dev-eng mailing list