[FFmpeg-devel] [PATCH 1/8] Deprecate avcodec_get_pix_fmt_name() in favor of the new av_get_pix_fmt_name().

Ramiro Polla ramiro.polla
Wed Nov 10 16:27:54 CET 2010

On Tue, Nov 9, 2010 at 5:23 AM, Tomas H?rdin <tomas.hardin at codemill.se> wrote:
> The user could add a hack in their code such as what I've done, as long
> as they always link dynamically. That way they don't have to patch any
> headers:
> #ifdef WIN32
> #define av_pix_fmt_descriptors av_pix_fmt_descriptors_foo
> #endif
> #include <libavutil/pixdesc.h>
> #ifdef WIN32
> #undef av_pix_fmt_descriptors
> __declspec(dllimport) const AVPixFmtDescriptor av_pix_fmt_descriptors[];
> #endif

This hack is so huge it doesn't even deserve to be mentioned in documentation =)

> The rest of the global variables probably aren't particularly
> interesting, but for the record the last time I look they were:
> ff_log2_tab, av_reverse, av_md5_size and av_sha1_size. Unless I'm
> mistaken, the last three are part of the public API. If not, they should
> be labeled as such.

They are av_ prefixed and declared in installed headers, so they are
part of the public API.

More information about the ffmpeg-devel mailing list