[FFmpeg-devel] [PATCH] dct-test compile fix

Ronald S. Bultje rsbultje
Mon Jun 23 14:11:54 CEST 2008


Hi,

most recent svn fails to compile dct-test for me:

In file included from dct-test.c:35:
dsputil.h: In function 'copy_block2':
dsputil.h:696: warning: implicit declaration of function 'AV_WN16'
dsputil.h:696: warning: implicit declaration of function 'AV_RN16'
dsputil.h: In function 'copy_block4':
dsputil.h:707: warning: implicit declaration of function 'AV_WN32'
dsputil.h:707: warning: implicit declaration of function 'AV_RN32'
dct-test.c: In function 'main':
dct-test.c:537: error: 'mm_flags' undeclared (first use in this function)
dct-test.c:537: error: (Each undeclared identifier is reported only once
dct-test.c:537: error: for each function it appears in.)

There's two problems manifested here. First, avutil.h does not include
intreadwrite.h, where the AV_[RW]N{16,32} macros are defined. The
second problem is that mm_flags is conditionally defined in dsputil if
HAVE_MMX is defined, but dct-test.c does not include config.h and thus
it is never defined.

Attached patch fixes both issues. If OK, I can apply both parts separately.

Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dspcompile.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080623/6bdf83b7/attachment.txt>



More information about the ffmpeg-devel mailing list