[FFmpeg-devel] [PATCH] Stricter const prototypes for sws_scale_*

Michael Niedermayer michaelni
Tue Jan 19 16:55:43 CET 2010


On Tue, Jan 19, 2010 at 02:17:55PM +0100, Alexis Ballier wrote:
> Since src[x] isn't modified either, this doesn't harm and it is imho
> cleaner to declare the functions with the strictest prototype
> possible.
> As a side effect (that you probably couldn't care less), this fixes
> backward compatibilty for calling sws_scale from c++ as it doesn't
> allow converting ** to const ** but wants const* const*
> 
> Alexis.

>  swscale.c |    4 ++--
>  swscale.h |    4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 55d525ae31b67b0fff37979922a0807720d92331  sws_const_stricter.patch

ok
[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100119/bed18976/attachment.pgp>



More information about the ffmpeg-devel mailing list