Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH 05/13] libavcodec: Split version.h
Date: Fri, 25 Feb 2022 15:34:48 +0100
Message-ID: <20220225143448.GG2829255@pb2> (raw)
In-Reply-To: <20220223142951.40366-6-martin@martin.st>


[-- Attachment #1.1: Type: text/plain, Size: 2319 bytes --]

On Wed, Feb 23, 2022 at 04:29:43PM +0200, 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/version.h           | 28 ++---------------
>  libavcodec/version_major.h     | 55 ++++++++++++++++++++++++++++++++++
>  libavformat/movenc.c           |  1 +
>  21 files changed, 76 insertions(+), 31 deletions(-)
>  create mode 100644 libavcodec/version_major.h

not sure i missed some patch but this seems not to build

CC	libavcodec/vc2enc.o
libavcodec/vc2enc.c: In function ‘vc2_encode_frame’:
libavcodec/vc2enc.c:957:48: error: ‘LIBAVCODEC_IDENT’ undeclared (first use in this function); did you mean ‘LIBAVUTIL_IDENT’?
     const char *aux_data = bitexact ? "Lavc" : LIBAVCODEC_IDENT;
                                                ^~~~~~~~~~~~~~~~
                                                LIBAVUTIL_IDENT
libavcodec/vc2enc.c:957:48: note: each undeclared identifier is reported only once for each function it appears in
ffbuild/common.mak:78: recipe for target 'libavcodec/vc2enc.o' failed
make: *** [libavcodec/vc2enc.o] Error 1
make: Target 'all' not remade because of errors.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

  reply	other threads:[~2022-02-25 14:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 14:29 [FFmpeg-devel] [PATCH 00/13] [RFC] Reduce unnecessary recompilation Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 01/13] libavutil: Remove leftover uses of version.h Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 02/13] libavcodec: Remove unnecessary includes " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 03/13] libavformat: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 04/13] libavdevice: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 05/13] libavcodec: Split version.h Martin Storsjö
2022-02-25 14:34   ` Michael Niedermayer [this message]
2022-02-25 14:38     ` Martin Storsjö
2022-02-25 20:23       ` Andreas Rheinhardt
2022-02-25 20:44         ` Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 06/13] libavformat: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 07/13] libavdevice: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 08/13] libpostproc: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 09/13] libswresample: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 10/13] libswscale: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 11/13] libavfilter: " Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 12/13] doc: Add an entry to APIchanges about no longer implicitly including version.h Martin Storsjö
2022-02-23 14:29 ` [FFmpeg-devel] [PATCH 13/13] configure: Use a separate config_components.h header for $ALL_COMPONENTS Martin Storsjö
2022-02-24 21:22   ` Michael Niedermayer
2022-02-24 21:35     ` Martin Storsjö
2022-03-11 12:17 ` [FFmpeg-devel] [PATCH 00/13] [RFC] Reduce unnecessary recompilation Martin Storsjö
2022-03-13 21:04   ` Paul B Mahol
2022-03-14 14:23   ` Michael Niedermayer
2022-03-16 12:16     ` Martin Storsjö

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220225143448.GG2829255@pb2 \
    --to=michael@niedermayer.cc \
    --cc=ffmpeg-devel@ffmpeg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git