[FFmpeg-devel] [PATCH] elbg.c Cygwin compatibility workaround
Eric Lasota
riot
Sat Jun 9 09:26:18 CEST 2007
Compiling libavcodec/elbg.c with:
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
yields the following:
In file included from elbg.c:29:
avcodec.h:2500: warning: `ImgReSampleContext' is deprecated (declared at
avcodec
.h:2479)
avcodec.h:2506: warning: `ImgReSampleContext' is deprecated (declared at
avcodec
.h:2479)
/src/ffmpeg/libavutil/random.h: In function `av_random':
elbg.c:117: error: prior parameter's size depends on 'dim'
elbg.c:188: error: prior parameter's size depends on 'elbg'
elbg.c:134: confused by earlier errors, bailing out
This patch resolves those errors by changing the problematic function
parameters to one-dimensional arrays, and adapting the code that uses
those parameters accordingly.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elbg_gcc344_fix.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070609/ae21446f/attachment.txt>
More information about the ffmpeg-devel
mailing list