Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Alexander Westberg-Bladh via ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
To: ffmpeg-devel@ffmpeg.org
Cc: Alexander Westberg-Bladh <alexander.bladh@gmail.com>
Subject: [FFmpeg-devel] [PATCH 2/3] avformat/matroskadec: Add data structures for ordered chapters
Date: Wed, 19 Nov 2025 14:49:38 +0100
Message-ID: <54393ac9ce37b3b23c77a691ca4ed7146fc74dc4.1763545906.git.alexander.bladh@gmail.com> (raw)
In-Reply-To: <cover.1763545906.git.alexander.bladh@gmail.com>

Add MatroskaEdition structure and extend MatroskaChapter and MatroskaDemuxContext
with fields needed for ordered chapters support.

Signed-off-by: Alexander Westberg-Bladh <alexander.bladh@gmail.com>
---
 libavformat/matroskadec.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 8b5eda8213..0b120bb43e 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -307,11 +307,21 @@ typedef struct MatroskaAttachment {
     AVStream *stream;
 } MatroskaAttachment;
 
+typedef struct MatroskaEdition {
+    uint64_t uid;
+    uint64_t flag_hidden;
+    uint64_t flag_default;
+    uint64_t flag_ordered;
+    EbmlList chapters;
+} MatroskaEdition;
+
 typedef struct MatroskaChapter {
     uint64_t start;
     uint64_t end;
     uint64_t uid;
     char    *title;
+    EbmlBin  segment_uid;
+    uint64_t segment_edition_uid;
 
     AVChapter *chapter;
 } MatroskaChapter;
@@ -438,6 +448,10 @@ typedef struct MatroskaDemuxContext {
 
     /* Bandwidth value for WebM DASH Manifest */
     int bandwidth;
+
+    /* Editions and ordered chapters support */
+    EbmlList editions;
+    EbmlBin  segment_uid;
 } MatroskaDemuxContext;
 
 #define CHILD_OF(parent) { .def = { .n = parent } }
-- 
2.51.2

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

  parent reply	other threads:[~2025-11-19 18:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-19 13:49 [FFmpeg-devel] [PATCH 0/3] avformat/matroska: add ordered-chapter parsing Alexander Westberg-Bladh via ffmpeg-devel
2025-11-19 13:49 ` [FFmpeg-devel] [PATCH 1/3] avformat/matroska: Add element IDs for ordered chapters Alexander Westberg-Bladh via ffmpeg-devel
2025-11-19 13:49 ` Alexander Westberg-Bladh via ffmpeg-devel [this message]
2025-11-19 13:49 ` [FFmpeg-devel] [PATCH 3/3] avformat/matroskadec: Update EBML syntax to parse EditionEntry Alexander Westberg-Bladh via ffmpeg-devel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54393ac9ce37b3b23c77a691ca4ed7146fc74dc4.1763545906.git.alexander.bladh@gmail.com \
    --to=ffmpeg-devel@ffmpeg.org \
    --cc=alexander.bladh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git