Commit 3b80bbfb04 for ffmpeg
commit 3b80bbfb04d943a7bcbc182b610134057bc689ae
Author: Romain Beauxis <romain.beauxis@gmail.com>
Date: Sun Nov 1 09:01:33 2026 -0600
avcodec/packet: add AV_PKT_FLAG_EOS
A demuxer can know that a packet ends a sequence whose decoder state
the next packet does not continue, such as the last packet of a
chained Ogg link.
This flag passes that on, so that a decoder can do whatever ending a
sequence requires on that packet.
diff --git a/doc/APIchanges b/doc/APIchanges
index 501506d25f..c729b61a44 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-11-xx - xxxxxxxxxx - lavc 63.28.100 - packet.h
+ Add AV_PKT_FLAG_EOS.
+
2026-11-xx - xxxxxxxxxx - lavc 63.27.100 - codec_id.h
Add AV_CODEC_ID_PCM_PAMF.
diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index 64f687a729..ce74113d0d 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -674,6 +674,15 @@ typedef struct AVPacket {
* be discarded by the decoder. I.e. Non-reference frames.
*/
#define AV_PKT_FLAG_DISPOSABLE 0x0010
+/**
+ * The packet ends a sequence: the next packet, if any, does not continue
+ * its decoder state.
+ *
+ * A decoder can do whatever ending a sequence requires when it decodes
+ * this packet. More packets may follow on the same stream, and a sequence
+ * may end without this flag when the input does not mark it.
+ */
+#define AV_PKT_FLAG_EOS 0x0020
enum AVSideDataParamChangeFlags {
AV_SIDE_DATA_PARAM_CHANGE_SAMPLE_RATE = 0x0004,
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 735c8b813c..87b7284a95 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@
#include "version_major.h"
-#define LIBAVCODEC_VERSION_MINOR 27
+#define LIBAVCODEC_VERSION_MINOR 28
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \