[FFmpeg-cvslog] r30306 - in trunk/libswscale: rgb2rgb.c rgb2rgb.h rgb2rgb_template.c swscale.c swscale.h swscale_internal.h swscale_template.c x86/yuv2rgb_template.c yuv2rgb.c

Art Clarke aclarke
Fri Jan 15 15:55:16 CET 2010


On Fri, Jan 15, 2010 at 12:51 AM, zuxy <subversion at mplayerhq.hu> wrote:
> Author: zuxy
> Date: Fri Jan 15 09:51:51 2010
> New Revision: 30306
>
> Log:
> Const correctness for src pointer. Remove all constness related warnings in
> libswscale.
>
> Modified:
> ? trunk/libswscale/rgb2rgb.c
> ? trunk/libswscale/rgb2rgb.h
> ? trunk/libswscale/rgb2rgb_template.c
> ? trunk/libswscale/swscale.c
> ? trunk/libswscale/swscale.h
> ? trunk/libswscale/swscale_internal.h
> ? trunk/libswscale/swscale_template.c
> ? trunk/libswscale/x86/yuv2rgb_template.c
> ? trunk/libswscale/yuv2rgb.c
>

This breaks the swscale API's backwards compatibility:

../../../../../../../csrc/com/xuggle/xuggler/VideoResampler.cpp:151:
error: invalid conversion from ?uint8_t**? to ?const uint8_t**?
../../../../../../../csrc/com/xuggle/xuggler/VideoResampler.cpp:151:
error:   initializing argument 2 of ?int sws_scale(SwsContext*, const
uint8_t**, int*, int, int, uint8_t**, int*)?

I've worked around it in our code downstream, but I thought people
would like to know.

- Art

-- 
http://www.xuggle.com/
xu?ggle (z?' gl) v. To freely encode, decode, and experience audio and video.

Use Xuggle to get the power of FFmpeg in Java.



More information about the ffmpeg-cvslog mailing list