[FFmpeg-devel] [PATCH] fix --disable-optimization compilation

Aurelien Jacobs aurel
Mon Oct 29 23:43:14 CET 2007


Hi,

Currently, compilation with no optimization fails because h264_parser.c
includes cabac.h, which define a static function which uses
last_coeff_flag_offset_8x8. This function is not optimized out, and
the var is declared static in h264.c.
The obvious solution is to make this var non-static.
With the attached patch, compilation with --disable-optimization works
for me with gcc-4.2 amd64.
Patch OK ?

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_optim_cabac.diff
Type: text/x-diff
Size: 2743 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071029/99d4ffbc/attachment.diff>



More information about the ffmpeg-devel mailing list