diff options
author | Martin Storsjö <martin@martin.st> | 2022-03-18 10:13:27 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-03-19 00:01:57 +0200 |
commit | 2d368392a5d6b856d63959ae8bfd40dd598c27e7 (patch) | |
tree | 2695cbe08ad37fc5d7ad0b8d2cb6d63955851966 /libswscale/swscale.h | |
parent | fce01276422a0e121d61aec811ee1773f9013b9c (diff) | |
download | ffmpeg-2d368392a5d6b856d63959ae8bfd40dd598c27e7.tar.gz |
Keep including the full version.h when headers are included externally
This avoids unnecessary churn and build breakage for users, by
making sure the whole version.h is included like it has been so far,
while keeping the benefit of not needing to rebuild most files in
the ffmpeg tree on minor/micro bumps.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r-- | libswscale/swscale.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 07c69e1ae7..3ebf7c698d 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -34,6 +34,12 @@ #include "libavutil/log.h" #include "libavutil/pixfmt.h" #include "version_major.h" +#ifndef HAVE_AV_CONFIG_H +/* When included as part of the ffmpeg build, only include the major version + * to avoid unnecessary rebuilds. When included externally, keep including + * the full version information. */ +#include "version.h" +#endif /** * @defgroup libsws libswscale |