aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Dekker <jdek@itanimul.li>2024-02-29 13:47:06 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2024-11-25 14:34:55 -0500
commitd89fbfd4df6fd64f604a8373224aa396149a3784 (patch)
tree78e540629e5228cc67ccf0b8828c7ce36e03340f
parent19f7dae81ab2c19643b97da7556383ee3f721e78 (diff)
downloadffmpeg-d89fbfd4df6fd64f604a8373224aa396149a3784.tar.gz
avcodec: deprecate sonic
This is an experimental and research codec of which ffmpeg is the only encoder and decoder, development has stalled since 2013 and these files don't exist in the wild. Deprecate the encoders to be removed next major bump, decoders to be removed one bump afterwards. We also disable the the encoders by default in configure, the decoders should be disabled by default next bump. Signed-off-by: J. Dekker <jdek@itanimul.li> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-rwxr-xr-xconfigure3
-rw-r--r--libavcodec/version_major.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 5dd7964fdf..44829b8eb9 100755
--- a/configure
+++ b/configure
@@ -4359,6 +4359,9 @@ do_random(){
$action $(rand_list "$@" | awk "BEGIN { srand($random_seed) } \$1 == \"prob\" { prob = \$2; next } rand() < prob { print }")
}
+# deprecated components (disabled by default)
+disable sonic_encoder sonic_ls_encoder
+
for opt do
optval="${opt#*=}"
case "$opt" in
diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h
index 7ab2b67c2f..86f4218b65 100644
--- a/libavcodec/version_major.h
+++ b/libavcodec/version_major.h
@@ -52,5 +52,9 @@
// reminder to remove the OMX encoder on next major bump
#define FF_CODEC_OMX (LIBAVCODEC_VERSION_MAJOR < 62)
+// reminder to remove Sonic Lossy/Lossless encoders on next major bump
+#define FF_CODEC_SONIC_ENC (LIBAVCODEC_VERSION_MAJOR < 62)
+// reminder to remove Sonic decoder on next-next major bump
+#define FF_CODEC_SONIC_DEC (LIBAVCODEC_VERSION_MAJOR < 63)
#endif /* AVCODEC_VERSION_MAJOR_H */