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 763c3356f1 avcodec/codec: rename encoder reconf codec cap
763c3356f1 is described below
commit 763c3356f115b5186e6d5ad102717fc972ff0399
Author: James Almer <[email protected]>
AuthorDate: Fri Aug 14 10:31:57 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Fri Aug 14 10:31:57 2026 -0300
avcodec/codec: rename encoder reconf codec cap
It was commited only a day ago, and the new name is more accurate, so this
change should be safe.
Signed-off-by: James Almer <[email protected]>
---
doc/APIchanges | 4 ++--
fftools/ffmpeg_enc.c | 2 +-
libavcodec/avcodec.h | 2 +-
libavcodec/codec.h | 2 +-
libavcodec/encode.c | 4 ++--
libavcodec/libaomenc.c | 2 +-
libavcodec/libx264.c | 2 +-
libavcodec/version.h | 2 +-
8 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/doc/APIchanges b/doc/APIchanges
index a87764c6a1..0d3c337245 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,9 +2,9 @@ The last version increases of all libraries were on 2026-06-23.
API changes, most recent first:
-2026-08-13 - xxxxxxxxxx - lavc 63.8.100 - avcodec.h codec.h
+2026-08-13 - xxxxxxxxxx - lavc 63.8.101 - avcodec.h codec.h
Add avcodec_encode_reconfigure.
- Add AV_CODEC_CAP_RECONF.
+ Add AV_CODEC_CAP_ENCODER_RECONF.
2026-08-xx - xxxxxxxxxx - lavf 63.6.100 - avformat.h
Add AVFMT_FLAG_LEGACY_ID3V2_COMM_KEYS. The deprecated export of id3v2 COMM
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c
index 8cf45bbf53..4745246410 100644
--- a/fftools/ffmpeg_enc.c
+++ b/fftools/ffmpeg_enc.c
@@ -973,7 +973,7 @@ static int reinit_encoder(OutputStream *ost, EncoderThread
*et)
if (force_reinit)
av_dict_set(©, "force_reinit", NULL, 0);
// Lets try a graceful reconfiguration first
- else if (e->enc_ctx->codec->capabilities & AV_CODEC_CAP_RECONF) {
+ else if (e->enc_ctx->codec->capabilities & AV_CODEC_CAP_ENCODER_RECONF) {
ret = avcodec_encode_reconfigure(e->enc_ctx, ©);
if (!ret)
goto end;
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 4690d722fb..efcfb7200e 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2235,7 +2235,7 @@ int avcodec_open2(AVCodecContext *avctx, const AVCodec
*codec, AVDictionary **op
/**
* Try to reconfigure the encoder with the provided dictionary. May only be
used
- * if a codec with AV_CODEC_CAP_RECONF has been opened.
+ * if a codec with AV_CODEC_CAP_ENCODER_RECONF has been opened.
*
* Not all options can be changed, and it depends on the encoder. If any of the
* options can't be applied (Either because the option can't be changed,
because
diff --git a/libavcodec/codec.h b/libavcodec/codec.h
index 4fed2a23c5..6194843e08 100644
--- a/libavcodec/codec.h
+++ b/libavcodec/codec.h
@@ -51,7 +51,7 @@
/**
* Encoder can be reconfigured by passing new initialization parameters.
*/
-#define AV_CODEC_CAP_RECONF (1 << 2)
+#define AV_CODEC_CAP_ENCODER_RECONF (1 << 2)
/**
* Encoder or decoder requires flushing with NULL input at the end in order to
diff --git a/libavcodec/encode.c b/libavcodec/encode.c
index 990ae43843..6fbbe86d8f 100644
--- a/libavcodec/encode.c
+++ b/libavcodec/encode.c
@@ -604,7 +604,7 @@ av_cold int ff_encode_reconf_parse_dict(AVCodecContext
*avctx, AVDictionary **di
AVDictionary *copy = NULL;
int ret;
- av_assert0(av_codec_is_encoder(codec) && (codec->capabilities &
AV_CODEC_CAP_RECONF));
+ av_assert0(av_codec_is_encoder(codec) && (codec->capabilities &
AV_CODEC_CAP_ENCODER_RECONF));
ret = av_dict_copy(©, *dict, 0);
if (ret < 0)
@@ -678,7 +678,7 @@ av_cold int avcodec_encode_reconfigure(AVCodecContext
*avctx, AVDictionary **dic
if (!dict || !*dict || !avcodec_is_open(avctx) ||
!av_codec_is_encoder(avctx->codec))
return AVERROR(EINVAL);
- if (!(avctx->codec->capabilities & AV_CODEC_CAP_RECONF)) {
+ if (!(avctx->codec->capabilities & AV_CODEC_CAP_ENCODER_RECONF)) {
av_log(avctx, AV_LOG_ERROR, "This encoder does not support
reconfiguration\n");
return AVERROR(ENOSYS);
}
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 992b1bd47c..3042d15f38 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1687,7 +1687,7 @@ const FFCodec ff_libaom_av1_encoder = {
.p.id = AV_CODEC_ID_AV1,
.p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY |
AV_CODEC_CAP_ENCODER_RECON_FRAME |
- AV_CODEC_CAP_RECONF |
+ AV_CODEC_CAP_ENCODER_RECONF |
AV_CODEC_CAP_OTHER_THREADS,
.color_ranges = AVCOL_RANGE_MPEG | AVCOL_RANGE_JPEG,
.p.profiles = NULL_IF_CONFIG_SMALL(ff_av1_profiles),
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index bb2c4d4eb2..a432c0b50e 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -1643,7 +1643,7 @@ const FFCodec ff_libx264_encoder = {
AV_CODEC_CAP_OTHER_THREADS |
AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE |
AV_CODEC_CAP_ENCODER_FLUSH |
- AV_CODEC_CAP_RECONF |
+ AV_CODEC_CAP_ENCODER_RECONF |
AV_CODEC_CAP_ENCODER_RECON_FRAME,
.p.priv_class = &x264_class,
.p.wrapper_name = "libx264",
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 37c4c39451..fb4cb6c86b 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -30,7 +30,7 @@
#include "version_major.h"
#define LIBAVCODEC_VERSION_MINOR 8
-#define LIBAVCODEC_VERSION_MICRO 100
+#define LIBAVCODEC_VERSION_MICRO 101
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]