[FFmpeg-devel] [PATCH 0/7] RFC: complete rework of s337m support

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier I would like to have some feedback on this work before going on... I send this as an RFC, and so, I have not considered versioning, changelog, doc, deprecation schemes. More testing and testing by other people is also obviously required. The fate samples are available here

[FFmpeg-devel] [PATCH 1/7] avcodec: add s337m parser and decoder

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Signed-off-by: Nicolas Gaullier --- configure| 2 + libavcodec/Makefile | 4 + libavcodec/allcodecs.c | 2 + libavcodec/codec_desc.c | 14 + libavcodec/codec_id.h

[FFmpeg-devel] [PATCH 2/7] avformat/spdif, s337m: use shared code from avcodec

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier --- libavformat/Makefile | 6 +++--- libavformat/s337m.c| 3 ++- libavformat/spdif.c| 42 -- libavformat/spdif.h| 1 - libavformat/spdifdec.c | 3 ++- libavformat/spdifenc.c | 3 ++- 6 files changed, 9 insertions(+

[FFmpeg-devel] [PATCH 3/7] avformat/s337m: switch to two rawdec for 16- and 24-bit

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Add support for variable or unknown 'offset': - phase change or jitter - Dolby E D2 Fix sync in several cases: - Dolby E integer rounded sample_rate - Missing frames (replaced by silence) Signed-off-by: Nicolas Gaullier --- libavformat/Makefile | 3 +- libavform

[FFmpeg-devel] [PATCH 4/7] fate/acodec: add 20/24bit s302m tests

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Prepare for s302m decoder re-implementation in mpegts. Signed-off-by: Nicolas Gaullier --- tests/fate/acodec.mak| 15 ++- tests/ref/acodec/s302m | 4 tests/ref/acodec/s302m-16bit | 4 tests/ref/acodec/s302m-20bit | 4 tests/ref

[FFmpeg-devel] [PATCH 5/7] avformat/mpegts: add s337m support

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Move s302m decoder from avcodec to avformat. Set AVSTREAM_PARSE_FULL for s337m support. Signed-off-by: Nicolas Gaullier --- libavformat/mpegts.c | 138 +- tests/fate/acodec.mak | 3 +- 2 files changed, 139 insertions(+), 2 delet

[FFmpeg-devel] [PATCH 6/7] avformat: add s337m support in mpegts, wav and mxf stereo tracks

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Signed-off-by: Nicolas Gaullier --- libavformat/demux.c | 2 ++ libavformat/mxfdec.c | 9 +++-- libavformat/wavdec.c | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index cba1f2e4df..d26d207a46 100644

[FFmpeg-devel] [PATCH 7/7] fate: add s337m decode and demux tests

2024-12-04 Thread ffnicolasg
From: Nicolas Gaullier Signed-off-by: Nicolas Gaullier --- tests/fate/audio.mak | 10 tests/fate/demux.mak | 15 - tests/ref/fate/s337m-demux-mxf| 56 +++ .../ref/fate/{s337m-demux => s337m-demux-raw} |