[FFmpeg-devel] Channel mapping integration in af pan

Clément Bœsch ubitux at gmail.com
Mon Jan 23 11:24:10 CET 2012


On Wed, Jan 18, 2012 at 07:51:53PM +0100, Reimar Döffinger wrote:
> On Wed, Jan 18, 2012 at 01:31:28PM +0100, Clément Bœsch wrote:
> > And last thing, the patch set introduces a const warning, but I don't know
> > what's the preferred way of fixing it:
> > 
> >   libavfilter/af_pan.c:316:5: warning: passing argument 4 of ‘swr_convert’ from
> >   incompatible pointer type [enabled by default]
> >   ./libswresample/swresample.h:111:5: note: expected ‘const uint8_t **’ but
> >   argument is of type ‘uint8_t **’
> 
> Don't know about preferred, but casting to (void *) usually solves all
> that kind of issues.
> 

OK, I did that in the latest patch.

> > I believe changing the swresample prototypes is the best way to go, but well…
> 
> Change them to what?

I'd actually drop the const in that case, but casting to void* is fine
too.

-- 
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/20120123/3353b881/attachment.asc>


More information about the ffmpeg-devel mailing list