[FFmpeg-devel] [PATCH v2 1/9] libavcodec: Split version.h

Martin Storsjö martin at martin.st
Sun Mar 13 00:34:07 EET 2022


On Fri, 11 Mar 2022, Martin Storsjö wrote:

> This avoids including version.h in all source files, avoiding
> unnecessary rebuilds when the version number is bumped. Only
> version_major.h is included by the main header, which defines
> availability of e.g. FF_API_* macros, and which is bumped much
> less often.
> ---
> fftools/cmdutils.c             |  1 +
> fftools/ffmpeg.c               |  1 +
> fftools/ffprobe.c              |  1 +
> libavcodec/Makefile            |  1 +
> libavcodec/aacenc.c            |  1 +
> libavcodec/avcodec.c           |  1 +
> libavcodec/avcodec.h           |  2 +-
> libavcodec/codec.h             |  2 +-
> libavcodec/dpxenc.c            |  1 +
> libavcodec/j2kenc.c            |  1 +
> libavcodec/libvorbisenc.c      |  1 +
> libavcodec/mjpegenc_common.c   |  1 +
> libavcodec/mpeg4videoenc.c     |  1 +
> libavcodec/options_table.h     |  2 +-
> libavcodec/packet.h            |  2 +-
> libavcodec/pthread_frame.c     |  2 +-
> libavcodec/tiffenc.c           |  1 +
> libavcodec/vaapi_encode_h264.c |  1 +
> libavcodec/vc2enc.c            |  1 +
> libavcodec/version.h           | 28 ++---------------
> libavcodec/version_major.h     | 55 ++++++++++++++++++++++++++++++++++
> libavformat/movenc.c           |  1 +
> 22 files changed, 77 insertions(+), 31 deletions(-)
> create mode 100644 libavcodec/version_major.h

After pushing "movenc: Use LIBAVFORMAT_IDENT instead of LIBAVCODEC_IDENT", 
I amended this patch locally to remove the change to libavformat/movenc.c.

// Martin


More information about the ffmpeg-devel mailing list