[FFmpeg-devel] [PATCH] Move ff_reverse to libavutil

Francesco Lavra francescolavra
Sat Nov 7 20:36:43 CET 2009


The ff_reverse array, which allows to reverse the bit order, is
currently declared as extern variable in libavcodec/get_bits.h and
defined as static variable in libavcodec/utils.c. If I try to include
libavcodec/get_bits.h from outside libavcodec, compilation fails because
that file includes mathops.h which in turn needs some libavcodec
internal definitions (it complains about missing INT_BIT).
The attached patch moves ff_reverse declaration and definition in
libavutil, making it possible to use ff_reverse from e.g. MPlayer code.

Regards,
Francesco

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ff_reverse.patch
Type: text/x-patch
Size: 6167 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091107/a442922a/attachment.bin>



More information about the ffmpeg-devel mailing list