Commit a796d86a30 for ffmpeg
commit a796d86a3038b7b23ec8ab707970f2fbc1959981
Author: Lynne <dev@lynne.ee>
Date: Thu Oct 8 13:27:18 2026 +0900
lavc: add a Panasonic RW2 codec ID
diff --git a/doc/APIchanges b/doc/APIchanges
index 01c9639022..e85eb1673f 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2026-06-23.
API changes, most recent first:
+2026-10-xx - xxxxxxxxxx - lavc 63.18.100 - codec_id.h
+ Add AV_CODEC_ID_RW2.
+
2026-10-07 - xxxxxxxxxx - lavu 61.12.100 - opt.h
Add AV_OPT_SERIALIZE_OPT_FLAGS_EXCLUDE.
diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c
index c02b48ac01..e91366f43b 100644
--- a/libavcodec/codec_desc.c
+++ b/libavcodec/codec_desc.c
@@ -2001,6 +2001,14 @@ static const AVCodecDescriptor codec_descriptors[] = {
.profiles = NULL_IF_CONFIG_SMALL(ff_astc_profiles),
.mime_types= MT("image/astc"),
},
+ {
+ .id = AV_CODEC_ID_RW2,
+ .type = AVMEDIA_TYPE_VIDEO,
+ .name = "rw2",
+ .long_name = NULL_IF_CONFIG_SMALL("Panasonic RW2"),
+ .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSLESS,
+ .mime_types= MT("image/x-panasonic-rw2"),
+ },
/* various PCM "codecs" */
{
diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h
index 0b388594b9..0133751d31 100644
--- a/libavcodec/codec_id.h
+++ b/libavcodec/codec_id.h
@@ -325,6 +325,7 @@ enum AVCodecID {
AV_CODEC_ID_JPEGXS,
AV_CODEC_ID_WEBP_ANIM,
AV_CODEC_ID_ASTC,
+ AV_CODEC_ID_RW2,
/* various PCM "codecs" */
AV_CODEC_ID_FIRST_AUDIO = 0x10000, ///< A dummy id pointing at the start of audio codecs
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 2618016a83..65bc52fb24 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
#include "version_major.h"
-#define LIBAVCODEC_VERSION_MINOR 17
+#define LIBAVCODEC_VERSION_MINOR 18
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \