[FFmpeg-devel] [PATCH 3/3] avformat/matroskadec: Update EBML syntax to parse EditionEntry

2025-11-19 Thread Alexander Westberg-Bladh via ffmpeg-devel
Update matroska_chapters[] syntax to parse EditionEntry elements into matroska->editions instead of the flat matroska->chapters list. update chapter finding code to look through all editions. Signed-off-by: Alexander Westberg-Bladh --- libavformat/matroskadec.c | 85 ++---

[FFmpeg-devel] [PATCH 2/3] avformat/matroskadec: Add data structures for ordered chapters

2025-11-19 Thread Alexander Westberg-Bladh via ffmpeg-devel
Add MatroskaEdition structure and extend MatroskaChapter and MatroskaDemuxContext with fields needed for ordered chapters support. Signed-off-by: Alexander Westberg-Bladh --- libavformat/matroskadec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavformat/matroskadec.c

[FFmpeg-devel] [PATCH 1/3] avformat/matroska: Add element IDs for ordered chapters

2025-11-19 Thread Alexander Westberg-Bladh via ffmpeg-devel
Add MATROSKA_ID_CHAPTERSEGMENTUID and MATROSKA_ID_CHAPTERSEGMENTEDITIONUID element IDs to support parsing of ordered chapters segment linking. Signed-off-by: Alexander Westberg-Bladh --- libavformat/matroska.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/matroska.h b/libavfo

[FFmpeg-devel] [PATCH 0/3] avformat/matroska: add ordered-chapter parsing

2025-11-19 Thread Alexander Westberg-Bladh via ffmpeg-devel
Hi, This short series lays the groundwork for ordered-chapter playback in Matroska, fixing trac ticket #3123. To start with I added type defs and parsing for editions. I stay compatible with the existing logic by fetching the chapters from all editions thereby flattening the structure. I think