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 3e897e3ecc avformat/mxfenc: set the random access flag for intra codecs
3e897e3ecc is described below
commit 3e897e3ecc2c93f2040dbbf2db9773b191067006
Author: Baptiste Coudurier <[email protected]>
AuthorDate: Fri Nov 13 16:25:24 2026 -0800
Commit: Baptiste Coudurier <[email protected]>
CommitDate: Sat Nov 21 21:52:32 2026 +0000
avformat/mxfenc: set the random access flag for intra codecs
Key frames of codecs without sequence headers (ProRes, JPEG 2000, FFV1)
were never flagged as random access points in the index.
Signed-off-by: Baptiste Coudurier <[email protected]>
---
libavformat/mxfenc.c | 7 +++++++
tests/ref/fate/mxf-remux-applehdr10 | 2 +-
tests/ref/lavf/mxf_ffv1 | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index e29900069a..5f8439913e 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -3474,6 +3474,13 @@ static int mxf_write_packet(AVFormatContext *s, AVPacket
*pkt)
}
}
+ // codecs without sequence headers: every key frame is a random access
point
+ if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
+ st->codecpar->codec_id != AV_CODEC_ID_MPEG2VIDEO &&
+ st->codecpar->codec_id != AV_CODEC_ID_H264 &&
+ pkt->flags & AV_PKT_FLAG_KEY)
+ ie.flags |= 0x80;
+
if (mxf->cbr_index) {
if (pkt->size != sc->frame_size && st->codecpar->codec_type ==
AVMEDIA_TYPE_VIDEO) {
av_log(s, AV_LOG_ERROR, "track %d: frame size does not match index
unit size, %d != %d\n",
diff --git a/tests/ref/fate/mxf-remux-applehdr10
b/tests/ref/fate/mxf-remux-applehdr10
index 9fbf8b60c7..e5bd4c959f 100644
--- a/tests/ref/fate/mxf-remux-applehdr10
+++ b/tests/ref/fate/mxf-remux-applehdr10
@@ -1,4 +1,4 @@
-5e03bad42adeb396b6614890f30aefba *tests/data/fate/mxf-remux-applehdr10.mxf
+746c72480f46876bd7de0d17aaa963e1 *tests/data/fate/mxf-remux-applehdr10.mxf
323641 tests/data/fate/mxf-remux-applehdr10.mxf
#tb 0: 1001/60000
#media_type 0: video
diff --git a/tests/ref/lavf/mxf_ffv1 b/tests/ref/lavf/mxf_ffv1
index 4ae93b2e89..1fcf09250a 100644
--- a/tests/ref/lavf/mxf_ffv1
+++ b/tests/ref/lavf/mxf_ffv1
@@ -1,3 +1,3 @@
-67638015788bb7dfcc1c16183967b513 *tests/data/lavf/lavf.mxf_ffv1
+bf91a74a741da5435ff4577358c269f8 *tests/data/lavf/lavf.mxf_ffv1
5587001 tests/data/lavf/lavf.mxf_ffv1
tests/data/lavf/lavf.mxf_ffv1 CRC=0x02354cdc
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]