This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new d5fc732359 avcodec/codec_internal: Include avcodec.h for enum 
AVCodecConfig
d5fc732359 is described below

commit d5fc7323591fc121ccd948f2155150d334e048a9
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Apr 7 14:52:02 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Apr 14 16:04:47 2026 +0200

    avcodec/codec_internal: Include avcodec.h for enum AVCodecConfig
    
    Forward-declaring an enum is not legal C (the underlying type of
    the enum may depend upon the enum constants, so this may cause
    ABI issues with -fshort-enums); compilers warn about this
    with -pedantic.
    
    This essentially reverts 7e84865cff2d174beede69a2018c0d81c8cc3b02.
    Notice that almost* all files that include codec_internal.h also
    need to include avcodec.h, so this does not lead to unnecessary
    rebuilds.
    
    This addresses part of #22684.
    
    *: The only file I am aware of that defines an FFCodec and does not
    need AVCodecContext as complete type is null.c (but even it already
    includes it implicitly); the avcodec.c test tool seems to be the only
    file where this commit actually leads to an unnecessary avcodec.h
    inclusion.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/codec_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/codec_internal.h b/libavcodec/codec_internal.h
index eea982e56c..720788210d 100644
--- a/libavcodec/codec_internal.h
+++ b/libavcodec/codec_internal.h
@@ -22,6 +22,7 @@
 #include <stdint.h>
 
 #include "libavutil/attributes.h"
+#include "avcodec.h"
 #include "codec.h"
 #include "config.h"
 
@@ -101,7 +102,6 @@ typedef struct FFCodecDefault {
 struct AVCodecContext;
 struct AVSubtitle;
 struct AVPacket;
-enum AVCodecConfig;
 
 enum FFCodecType {
     /* The codec is a decoder using the decode callback;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to