Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Alexander bladh <alexander.bladh@gmail.com>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] libavformat/matroskadec: Add support for chapter segment UUID and edition UID
Date: Sat, 5 Apr 2025 09:57:44 +0200
Message-ID: <CAOyJSgqTKwwSr-g00v8KP7hz1ACvE5up_S5GZ1ibMKgWiB0bpw@mail.gmail.com> (raw)
In-Reply-To: <20250404233723.GB4991@pb2>

Sorry, must have messed something up when running the tests locally.
I will also check the warning.

New contributor here, I have been looking at this issue for years now so I
thought I would try to contribute.
https://trac.ffmpeg.org/ticket/3123

My plan is
* Read the extra data needed to support ordered chapters
* Add some data structure tracking external files
* Add an option to search for external segment with related discovery logic
* Implement reading and seeking through external segments

Let me know if you have any feedback.

Regards,
Alexander

On Sat, 5 Apr 2025 at 01:37, Michael Niedermayer <michael@niedermayer.cc>
wrote:

> On Fri, Apr 04, 2025 at 11:24:05AM +0200, Alexander Westberg-Bladh wrote:
> > This adds support for parsing ChapterSegmentUID and
> ChapterSegmentEditionUID
> > elements in Matroska chapters. These elements are used in ordered
> chapters
> > to reference external files see #3123.
> >
> > Signed-off-by: Alexander Westberg-Bladh <alexander.bladh@gmail.com>
> > ---
> >  libavformat/matroska.h    |  3 +++
> >  libavformat/matroskadec.c | 32 ++++++++++++++++++++------------
> >  2 files changed, 23 insertions(+), 12 deletions(-)
>
> breaks fate-h264-direct-bff
>
> ==3402053== Invalid read of size 8
> ==3402053==    at 0x126DCE6: av_buffer_realloc (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x67E927: ebml_parse (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x67EC84: ebml_parse (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x67EC84: ebml_parse (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x67F421: matroska_read_header (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x625A1E: avformat_open_input (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x3054D4: ifile_open (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x31C417: open_files.isra.0 (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x31E3F5: ffmpeg_parse_options (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x2FCD77: main (in ffmpeg/ffmpeg_g)
> ==3402053==  Address 0x118dd288 is 0 bytes after a block of size 1,672
> alloc'd
> ==3402053==    at 0x483E0F0: memalign (in
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==3402053==    by 0x483E212: posix_memalign (in
> /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==3402053==    by 0x128A524: av_malloc (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x128A6ED: av_mallocz (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x625DC4: avformat_open_input (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x3054D4: ifile_open (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x31C417: open_files.isra.0 (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x31E3F5: ffmpeg_parse_options (in ffmpeg/ffmpeg_g)
> ==3402053==    by 0x2FCD77: main (in ffmpeg/ffmpeg_g)
>
>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> No great genius has ever existed without some touch of madness. --
> Aristotle
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

      reply	other threads:[~2025-04-05  7:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-04  9:24 Alexander Westberg-Bladh
2025-04-04 23:37 ` Michael Niedermayer
2025-04-05  7:57   ` Alexander bladh [this message]

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=CAOyJSgqTKwwSr-g00v8KP7hz1ACvE5up_S5GZ1ibMKgWiB0bpw@mail.gmail.com \
    --to=alexander.bladh@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    /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