[FFmpeg-devel] [PATCH v3 0/2] Remove chained ogg stream header packets from demuxer
Romain Beauxis
romain.beauxis at gmail.com
Sat May 3 20:03:27 EEST 2025
These patches remove the ogg header packets from secondary chained ogg
streams from the demuxer.
To do so, the packet demuxing function is modified to explicitely tell
the demuxer when skip header packets
Also, the opus packet demuxing function is adapted to properly copy extra
data from the new chained streams so that decoding can keep happening.
The diff from the test output makes it possible to follow what the
changes do to the extracted streams.
## Changes since last revision:
* The base tests are now in the codebase
* Split the last commit in two, one for the API change and one for the
corresponding codec-specific use of it.
Romain Beauxis (2):
libavformat/oggdec.c: Changing the packet() callback API/Return value
ogg/{vorbis,flac,opus}: Remove header packets from subsequent ogg
streams from the demuxer output.
libavformat/oggdec.c | 26 ++++++++++----------
libavformat/oggdec.h | 6 +++++
libavformat/oggparseflac.c | 28 ++++++++++++++++++++--
libavformat/oggparseopus.c | 11 +++++++++
libavformat/oggparsevorbis.c | 11 +++++++--
tests/ref/fate/ogg-flac-chained-meta.txt | 2 --
tests/ref/fate/ogg-opus-chained-meta.txt | 1 -
tests/ref/fate/ogg-vorbis-chained-meta.txt | 3 ---
8 files changed, 66 insertions(+), 22 deletions(-)
--
2.39.5 (Apple Git-154)
More information about the ffmpeg-devel
mailing list