[FFmpeg-devel] [PATCH] fate/jpeg2000dec: add missing ISO/IEC 15444-4 conformance tests

2024-11-08 Thread pal
From: Pierre-Anthony Lemieux --- tests/fate/jpeg2000.mak | 122 ++- tests/ref/fate/jpeg2000dec-ds0_hm_15_b8 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_02_b11 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_02_b12 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_03_b

[FFmpeg-devel] [PATCH] jpeg200dec: reset in_tile_headers flag between frames

2024-10-24 Thread pal
From: Pierre-Anthony Lemieux --- libavcodec/jpeg2000dec.c | 19 ++- libavcodec/jpeg2000dec.h | 1 - 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 2e09b279dc..5b05ff2455 100644 --- a/libavcodec/jpeg2000d

[FFmpeg-devel] [PATCH] fate/jpeg2000dec: add selected conformance codestreams from ISO/IEC 15444-4

2024-08-20 Thread pal
From: Pierre-Anthony Lemieux --- tests/fate/jpeg2000.mak | 129 +-- tests/ref/fate/jpeg2000dec-ds0_hm_15_b8 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_02_b11 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_02_b12 | 6 ++ tests/ref/fate/jpeg2000dec-ds0_ht_03_b

[FFmpeg-devel] [PATCH] fate/jpeg2000dec: add support for p0_10.j2k

2024-06-15 Thread pal
From: Pierre-Anthony Lemieux p0_10.j2k is one of the reference codestreams included in Rec. ITU-T T.803 | ISO/IEC 15444-4. --- tests/fate/jpeg2000.mak | 3 +++ tests/ref/fate/jpeg2000dec-p0_10 | 6 ++ 2 files changed, 9 insertions(+) create mode 100644 tests/ref/fate/jpeg2000dec-p

[FFmpeg-devel] [PATCH] configure: remove false positives with valgrind-memcheck

2024-06-08 Thread pal
From: Pierre-Anthony Lemieux If `--toolchain=valgrind-memcheck` is selected, fate-lavf-asf fails on a false positive. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 6c5b8aab9a..c708f2e38c 100755 --- a/configure +++ b/configure @@ -

[FFmpeg-devel] [PATCH v3] avcodec/jpeg2000dec: fix HT block decoder

2024-05-27 Thread pal
From: Pierre-Anthony Lemieux Addresses https://trac.ffmpeg.org/ticket/10905 Co-authored-by: Osamu Watanabe Signed-off-by: Pierre-Anthony Lemieux --- libavcodec/jpeg2000htdec.c | 122 --- tests/ref/fate/jpeg2000dec-ds0_ht_01_b11 | 2 +- 2 files changed, 63 i

[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: fix HT block decoder

2024-05-19 Thread pal
From: Pierre-Anthony Lemieux Addresses https://trac.ffmpeg.org/ticket/10905 Co-authored-by: Osamu Watanabe Signed-off-by: Pierre-Anthony Lemieux --- libavcodec/jpeg2000htdec.c | 122 --- tests/ref/fate/jpeg2000dec-ds0_ht_01_b11 | 2 +- 2 files changed, 63 i

[FFmpeg-devel] [PATCH v2] avcodec/jpeg2000htdec: check if block decoding will exceed internal precision

2023-08-12 Thread pal
From: Pierre-Anthony Lemieux Intended to replace https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230802000135.26482-3-mich...@niedermayer.cc/ with a more accurate block decoding magnitude bound. --- libavcodec/jpeg2000htdec.c | 34 +- 1 file changed, 33 inse

[FFmpeg-devel] [PATCH v1] avcodec/jpeg2000htdec: check if block decoding will exceed internal precision

2023-08-10 Thread pal
From: Pierre-Anthony Lemieux Intended to replace https://patchwork.ffmpeg.org/project/ffmpeg/patch/20230802000135.26482-3-mich...@niedermayer.cc/ with a more accurate block decoding magnitude bound. --- libavcodec/jpeg2000htdec.c | 32 +++- 1 file changed, 31 insert

[FFmpeg-devel] [PATCH v2] avformat/imf: clean-up logging * remove log to NULL * remove extraneous logging

2023-05-29 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf.h | 6 +- libavformat/imf_cpl.c | 179 +++- libavformat/imfdec.c| 2 +- libavformat/tests/imf.c | 4 +- 4 files changed, 91 insertions(+), 100 deletions(-) diff --git a/libavformat/imf.h b/lib

[FFmpeg-devel] [PATCH v3 2/2] fate/imf: remove redundant code

2023-05-15 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 52 ++--- 1 file changed, 12 insertions(+), 40 deletions(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index c02cd87ceb..068ee6c58a 100644 --- a/libavformat/tests/imf.c +++ b/libav

[FFmpeg-devel] [PATCH v3 1/2] fate/imf: fix memory leak

2023-05-15 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index cfd84fb8c8..c02cd87ceb 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@ -402,6 +40

[FFmpeg-devel] [PATCH v1 2/2] fate/imf: remove redundant code

2023-05-15 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 38 +- 1 file changed, 5 insertions(+), 33 deletions(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index a5bdf16645..a23b687c3d 100644 --- a/libavformat/tests/imf.c +++ b/libavform

[FFmpeg-devel] [PATCH v1 1/2] fate/imf: fix memory leak

2023-05-15 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index cfd84fb8c8..a5bdf16645 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@ -402,6 +4

[FFmpeg-devel] [PATCH v1] avformat/imf: clean-up logging

2023-05-06 Thread pal
From: Pierre-Anthony Lemieux * consistently use the IMF demuxer AVFormatContext in av_log() * remove extraneous logging --- libavformat/imf.h | 5 +- libavformat/imf_cpl.c | 183 +++- libavformat/imfdec.c| 2 +- libavformat/tests/imf.c | 4 +

[FFmpeg-devel] [PATCH 2/2] avformat/tests/imf: add invalid resource test

2023-04-26 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 65 + tests/ref/fate/imf | 2 ++ 2 files changed, 67 insertions(+) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index 2cacb43f47..cfd84fb8c8 100644 --- a/libavformat/tests/

[FFmpeg-devel] [PATCH 1/2] avformat/imf: fix invalid resource handling

2023-04-26 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf_cpl.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c index ad84a68b13..a7cf5fa360 100644 --- a/libavformat/imf_cpl.c +++ b/libavformat/imf_cpl.c @@ -608,11 +608,10 @

[FFmpeg-devel] [PATCH v2] fate/imfdec: add audio test

2023-01-10 Thread pal
From: Pierre-Anthony Lemieux Improves the test material by using audio and video resources whose respective temporal boundaries do not line up. https://www.sandflow.com/public/countdown-audio-2023-01-10-2.zip --- tests/fate/imf.mak| 3 + tests/ref/fate/imf-cpl-with-audio | 20

[FFmpeg-devel] [PATCH v2 3/3] fate/imfdec: remove imf experimental flag

2023-01-05 Thread pal
From: Pierre-Anthony Lemieux --- tests/fate/imf.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate/imf.mak b/tests/fate/imf.mak index feb54d1361..d64882f89e 100644 --- a/tests/fate/imf.mak +++ b/tests/fate/imf.mak @@ -1,5 +1,5 @@ FATE_IMF += fate-imf-cpl-with-rep

[FFmpeg-devel] [PATCH v2 1/3] avformat/imfdec: remove the experimental flag

2023-01-05 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 03de9ce151..a92686e93b 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -1018,7 +1018,7 @@ static const AVCla

[FFmpeg-devel] [PATCH v2 2/3] doc: improve IMF demuxer documentation

2023-01-05 Thread pal
From: Pierre-Anthony Lemieux --- doc/demuxers.texi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index 2b6dd86c2a..75c142935e 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -289,7 +289,15 @@ This demuxer accepts the

[FFmpeg-devel] [PATCH v1] fate/imfdec: add audio test

2022-12-29 Thread pal
From: Pierre-Anthony Lemieux Adds an audio test for the IMF demuxer. FATE content at https://www.sandflow.com/public/countdown-audio.zip --- tests/fate/imf.mak| 3 + tests/ref/fate/imf-cpl-with-audio | 207 ++ 2 files changed, 210 insertions(+) cr

[FFmpeg-devel] [PATCH v1] fate/jpeg2000: add JPEG 2000 tests using ITU/ISO conformance materials

2022-12-26 Thread pal
From: Pierre-Anthony Lemieux Adds JPEG 2000 decoder tests using materials from the conformance suite specified in Rec. ITU-T T.803 | ISO/IEC 15444-4. The jpeg2000dec-ds0_ht_01_b11 test assumes that patchset https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=8078 has been applied. The te

[FFmpeg-devel] [PATCH 2/2] doc: improve IMF demuxer documentation

2022-11-03 Thread pal
From: Pierre-Anthony Lemieux --- doc/demuxers.texi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index 2b6dd86c2a..75c142935e 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -289,7 +289,15 @@ This demuxer accepts the

[FFmpeg-devel] [PATCH 1/2] avformat/imfdec: remove the experimental flag

2022-11-03 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 03de9ce151..a92686e93b 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -1018,7 +1018,7 @@ static const AVCla

[FFmpeg-devel] [PATCH v2 3/3] avformat/imfdec: variable initialiaztion cosmetics

2022-10-02 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf_cpl.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libavformat/imf_cpl.c b/libavformat/imf_cpl.c index 183e6dd84e..ad84a68b13 100644 --- a/libavformat/imf_cpl.c +++ b/libavformat/imf_cpl.c @@ -72,10 +72,9 @@ xmlNode

[FFmpeg-devel] [PATCH v2 2/3] avformat/tests/imf: add CPL timecode test

2022-10-02 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 7 +++ tests/ref/fate/imf | 1 + 2 files changed, 8 insertions(+) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index a71de692f9..2cacb43f47 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@

[FFmpeg-devel] [PATCH v2 1/3] avformat/imfdec: use CPL start timecode if available

2022-10-02 Thread pal
From: Pierre-Anthony Lemieux The IMF CPL contains an optional timecode start address. This patch reads the latter, if present, into the context's timecode metadata parameter. This addresses https://trac.ffmpeg.org/ticket/9842. --- libavformat/imf.h | 2 + libavformat/imf_cpl.c | 106 +

[FFmpeg-devel] [PATCH v2] format/imfdec: improve error handling when selecting tracks for playback

2022-09-19 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5bbe7a53f8..9ba8b6de8b 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -681,8 +681,11 @@ st

[FFmpeg-devel] [PATCH] MAINTAINERS: add maintainer for the imf demuxer

2022-09-15 Thread pal
DD6B Philip Langdale 5DC5 8D66 5FBA 3A43 18EC 045E F8D6 B194 6A75 682E +Pierre-Anthony Lemieux (pal) F4B3 9492 E6F2 E4AF AEC8 46CB 698F A1F0 F8D4 EED4 Ramiro Polla 7859 C65B 751B 1179 792E DAE8 8E95 8B2F 9B6C 5700 Reimar Doeffinger C61D 16E5 9E2C D10C

[FFmpeg-devel] [PATCH] format/imfdec: improve error handling when selecting tracks for playback

2022-09-07 Thread pal
From: Pierre-Anthony Lemieux Addresses coverity 1512414 --- libavformat/imfdec.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5bbe7a53f8..58b1455c9f 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfd

[FFmpeg-devel] [PATCH v3 2/2] fate/mxf: add JPEG 2000 test

2022-09-06 Thread pal
From: Pierre-Anthony Lemieux --- tests/fate/mxf.mak | 4 ++ tests/ref/fate/mxf-probe-j2k | 78 2 files changed, 82 insertions(+) create mode 100644 tests/ref/fate/mxf-probe-j2k diff --git a/tests/fate/mxf.mak b/tests/fate/mxf.mak index 3ab936b5de

[FFmpeg-devel] [PATCH v3 1/2] avformat/mxf: set stream frame rates for ST 422 essence containers

2022-09-06 Thread pal
From: Pierre-Anthony Lemieux The MXF demuxer does not currently set AVStream::avg_frame_rate and ::r_frame_rate when J2K essence is wrapped according to SMPTE ST 422. --- libavformat/mxfdec.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavformat/mxfdec.c b/

[FFmpeg-devel] [PATCH v2 2/2] fate/mxf: add JPEG 2000 test

2022-09-05 Thread pal
From: Pierre-Anthony Lemieux --- tests/fate/mxf.mak | 4 ++ tests/ref/fate/mxf-probe-j2k | 78 2 files changed, 82 insertions(+) create mode 100644 tests/ref/fate/mxf-probe-j2k diff --git a/tests/fate/mxf.mak b/tests/fate/mxf.mak index 3ab936b5de

[FFmpeg-devel] [PATCH v2 1/2] avformat/mxf: set stream frame rates for ST 422 essence containers

2022-09-05 Thread pal
From: Pierre-Anthony Lemieux The MXF demuxer does not currently set AVStream::avg_frame_rate and ::r_frame_rate when J2K essence is wrapped according to SMPTE ST 422. --- libavformat/mxfdec.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavformat/mxfdec.c b/

[FFmpeg-devel] [PATCH v1] avformat/mxf: set stream frame rates for ST 422 essence containers

2022-08-28 Thread pal
From: Pierre-Anthony Lemieux The MXF demuxer does not currently set AVStream::avg_frame_rate and ::r_frame_rate when J2K essence is wrapped according to SMPTE ST 422. --- libavformat/mxfdec.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libavformat/mxfdec.c b/

[FFmpeg-devel] [PATCH v1] avformat/imfdec: check if Asset/Id exists before trying to read it

2022-08-25 Thread pal
From: Pierre-Anthony Lemieux Fixes Coverity issue #1512406 --- libavformat/imfdec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5bbe7a53f8..fde91a6419 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@

[FFmpeg-devel] [PATCH v1 2/2] avformat/tests/imf: add CPL timecode test

2022-08-22 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/imf.c | 7 +++ tests/ref/fate/imf | 1 + 2 files changed, 8 insertions(+) diff --git a/libavformat/tests/imf.c b/libavformat/tests/imf.c index e65629ccbc..d42295dc29 100644 --- a/libavformat/tests/imf.c +++ b/libavformat/tests/imf.c @@

[FFmpeg-devel] [PATCH v1 1/2] avformat/imfdec: use CPL start timecode if available

2022-08-22 Thread pal
From: Pierre-Anthony Lemieux The IMF CPL contains an optional timecode start address. This patch reads the latter, if present, into the context's timecode metadata parameter. This addresses https://trac.ffmpeg.org/ticket/9842. --- libavformat/imf.h | 2 + libavformat/imf_cpl.c | 109 +

[FFmpeg-devel] [PATCH v8 2/2] avformat/imfdec: preserve stream information

2022-08-10 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 71dfb26958..5bbe7a53f8 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -573,18 +573,14 @@ stati

[FFmpeg-devel] [PATCH v8 1/2] avformat: refactor ff_stream_encode_params_copy() to stream_params_copy()

2022-08-10 Thread pal
From: Pierre-Anthony Lemieux Further code style improvements. --- libavformat/avformat.c | 66 libavformat/fifo.c | 10 ++ libavformat/internal.h | 11 +++ libavformat/mux.h| 9 -- libavformat/mux_utils.c | 28

[FFmpeg-devel] [PATCH v7 2/2] avformat/imfdec: preserve stream information

2022-08-06 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 71dfb26958..5bbe7a53f8 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -573,18 +573,14 @@ stati

[FFmpeg-devel] [PATCH v7 1/2] avformat: refactor ff_stream_encode_params_copy() to stream_params_copy()

2022-08-06 Thread pal
From: Pierre-Anthony Lemieux Addresses http://ffmpeg.org/pipermail/ffmpeg-devel/2022-August/299726.html --- libavformat/avformat.c | 66 libavformat/fifo.c | 8 ++--- libavformat/internal.h | 11 +++ libavformat/mux.h| 9 -- l

[FFmpeg-devel] [PATCH v6 2/2] avformat/imfdec: preserve stream information

2022-08-05 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 71dfb26958..5bbe7a53f8 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -573,18 +573,14 @@ stati

[FFmpeg-devel] [PATCH v6 1/2] avformat: refactor ff_stream_encode_params_copy() to stream_params_copy()

2022-08-05 Thread pal
From: Pierre-Anthony Lemieux Addresses http://ffmpeg.org/pipermail/ffmpeg-devel/2022-August/299685.html --- libavformat/avformat.c | 68 libavformat/fifo.c | 8 ++--- libavformat/internal.h | 12 +++ libavformat/mux.h| 9 -- l

[FFmpeg-devel] [PATCH v5 2/2] avformat/imfdec: preserve stream information

2022-07-31 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://trac.ffmpeg.org/ticket/9818, the IMF demuxer does not currently preserve stream information such as language in the case of audio streams. --- libavformat/imfdec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib

[FFmpeg-devel] [PATCH v5 1/2] avformat: refactor ff_stream_encode_params_copy() to ff_stream_params_copy()

2022-07-31 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/298491.html. Note that ff_stream_params_copy() does not copy: * the index field * the attached_pic if its size is 0 Addresses http://ffmpeg.org/pipermail/ffmpeg-devel/2022-August/299514.html ---

[FFmpeg-devel] [PATCH v4 2/2] avformat/imfdec: preserve stream information

2022-07-31 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://trac.ffmpeg.org/ticket/9818, the IMF demuxer does not currently preserve stream information such as language in the case of audio streams. --- libavformat/imfdec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib

[FFmpeg-devel] [PATCH v4 1/2] avformat: refactor ff_stream_encode_params_copy() to ff_stream_params_copy()

2022-07-31 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/298491.html. Note that ff_stream_params_copy() does not copy: * the index field * the attached_pic if its size is 0 --- libavformat/avformat.c | 41 liba

[FFmpeg-devel] [PATCH v3 2/2] avformat/imfdec: preserve stream information

2022-07-25 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://trac.ffmpeg.org/ticket/9818, the IMF demuxer does not currently preserve stream information such as language in the case of audio streams. --- libavformat/imfdec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib

[FFmpeg-devel] [PATCH v3 1/2] avformat: refactor ff_stream_encode_params_copy() to ff_stream_params_copy()

2022-07-25 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/298491.html. Note that ff_stream_params_copy() does not copy the index field, which is usually set by avformat_new_stream(). --- libavformat/avformat.c | 37 +

[FFmpeg-devel] [PATCH v2 2/2] avformat/imfdec: preserve stream information

2022-07-12 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://trac.ffmpeg.org/ticket/9818, the IMF demuxer does not currently preserve stream information such as language in the case of audio streams. --- libavformat/imfdec.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib

[FFmpeg-devel] [PATCH v2 1/2] avformat: refactor ff_stream_encode_params_copy() to ff_stream_params_copy()

2022-07-12 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://ffmpeg.org/pipermail/ffmpeg-devel/2022-July/298491.html --- libavformat/avformat.c | 38 ++ libavformat/fifo.c | 2 +- libavformat/internal.h | 9 + libavformat/mux.h| 9 ---

[FFmpeg-devel] [PATCH v1] avformat/imfdec: preserve stream information

2022-07-03 Thread pal
From: Pierre-Anthony Lemieux As discussed at https://trac.ffmpeg.org/ticket/9818, the IMF demuxer does not currently preserve stream information such as language in the case of audio streams. This patch is modeled on copy_stream_props() at avformat/concatdec.c. --- libavformat/imfdec.c | 5

[FFmpeg-devel] [PATCH v4 6/6] avfilter/showinfo: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavfilter/vf_showinfo.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d39310ef..6efcafce28 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showin

[FFmpeg-devel] [PATCH v4 5/6] avformat/imf: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf.h | 18 - libavformat/imf_cpl.c | 60 +++-- libavformat/imfdec.c| 34 +++ libavformat/tests/imf.c | 18 ++--- 4 files changed, 52 insertions(+), 78 deletions(-

[FFmpeg-devel] [PATCH v4 4/6] avformat/smoothstreamingenc: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/smoothstreamingenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 1713dd9009..ade6d5723b 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavf

[FFmpeg-devel] [PATCH v4 3/6] avformat/mov: refactor to use avutil/uuid

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/mov.c| 25 + libavformat/movenc.c | 9 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index d7be593a86..f8248ab65b 100644 --- a/libavformat/mov.c +++ b/liba

[FFmpeg-devel] [PATCH v4 2/6] avutil/tests/uuid: add uuid tests

2022-06-01 Thread pal
From: Pierre-Anthony Lemieux --- libavutil/Makefile | 1 + libavutil/tests/.gitignore | 1 + libavutil/tests/uuid.c | 141 + tests/fate/libavutil.mak | 5 ++ 4 files changed, 148 insertions(+) create mode 100644 libavutil/tests/uuid.c dif

[FFmpeg-devel] [PATCH v4 1/6] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-06-01 Thread pal
From: Zane van Iperen * Addresses review comments Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 141 +++ libavutil/uuid.h | 147 +

[FFmpeg-devel] [PATCH v3 6/6] avfilter/showinfo: refactor to use avutil/uuid

2022-05-30 Thread pal
From: Pierre-Anthony Lemieux --- libavfilter/vf_showinfo.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 12d39310ef..0d6f2805bb 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinf

[FFmpeg-devel] [PATCH v3 5/6] avformat/imf: refactor to use avutil/uuid

2022-05-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imf.h | 18 - libavformat/imf_cpl.c | 60 +++-- libavformat/imfdec.c| 34 +++ libavformat/tests/imf.c | 18 ++--- 4 files changed, 52 insertions(+), 78 deletions(-

[FFmpeg-devel] [PATCH v3 4/6] avformat/smoothstreamingenc: refactor to use avutil/uuid

2022-05-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/smoothstreamingenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 1713dd9009..ade6d5723b 100644 --- a/libavformat/smoothstreamingenc.c +++ b/libavf

[FFmpeg-devel] [PATCH v3 3/6] avformat/mov: refactor to use avutil/uuid

2022-05-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/mov.c| 25 + libavformat/movenc.c | 9 + 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index d7be593a86..f8248ab65b 100644 --- a/libavformat/mov.c +++ b/liba

[FFmpeg-devel] [PATCH v3 2/6] avutil/tests/uuid: add uuid tests

2022-05-30 Thread pal
From: Pierre-Anthony Lemieux --- libavutil/Makefile | 1 + libavutil/tests/.gitignore | 1 + libavutil/tests/uuid.c | 141 + tests/fate/libavutil.mak | 5 ++ 4 files changed, 148 insertions(+) create mode 100644 libavutil/tests/uuid.c dif

[FFmpeg-devel] [PATCH v3 1/6] avutil/uuid: add utility library for manipulating UUIDs as specified in RFC 4122

2022-05-30 Thread pal
From: Zane van Iperen Addresses review comments including: * simplifying av_uuid_parse_range() * removing avcodec/cbs_sei from this refactoring exercise Co-authored-by: Pierre-Anthony Lemieux Signed-off-by: Zane van Iperen --- libavutil/Makefile | 2 + libavutil/uuid.c | 142

[FFmpeg-devel] [PATCH v4 6/7] avformat/imf: refactor to use ff_rescale_interval()

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index ac212b05e1..a19e431df3 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -904,14 +904,6

[FFmpeg-devel] [PATCH v4 7/7] avformat/concat: refactor to use ff_rescale_interval()

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/concatdec.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 0603c6e254..cfe1329105 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -8

[FFmpeg-devel] [PATCH v4 5/7] avformat/tests: add test for ff_rescale_interval()

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/Makefile | 1 + libavformat/tests/.gitignore | 1 + libavformat/tests/seek_utils.c | 57 ++ tests/fate/libavformat.mak | 5 +++ 4 files changed, 64 insertions(+) create mode 100644 libavformat/tests/

[FFmpeg-devel] [PATCH v4 4/7] avformat/seek: add ff_rescale_interval() function

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux Refactors a function used by avformat/concat and avformat/imf. --- libavformat/internal.h | 20 libavformat/seek.c | 10 ++ 2 files changed, 30 insertions(+) diff --git a/libavformat/internal.h b/libavformat/internal.h index f24c687

[FFmpeg-devel] [PATCH v4 3/7] avformat/imf: clean-up and reduce logging

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 93 ++-- 1 file changed, 29 insertions(+), 64 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index f208b262c3..ac212b05e1 100644 --- a/libavformat/imfdec.c +++ b/libavformat/im

[FFmpeg-devel] [PATCH v4 2/7] avformat/imf: add support for input seeking

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer did not implement AVInputFormat::read_seek2(), resulting in inefficient input seeking. Addresses https://trac.ffmpeg.org/ticket/9648 Byte- and frame-seeking are not supported. --- libavformat/imfdec.c | 129 ++---

[FFmpeg-devel] [PATCH v4 1/7] avformat/imf: relocate static function imf_time_to_ts()

2022-03-11 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 3ce850b75a..b98af020d2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c

[FFmpeg-devel] [PATCH v3 7/7] avformat/concat: refactor to use ff_rescale_interval()

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/concatdec.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 0603c6e254..cfe1329105 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -8

[FFmpeg-devel] [PATCH v3 6/7] avformat/imf: refactor to use ff_rescale_interval()

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index ac212b05e1..a19e431df3 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -904,14 +904,6

[FFmpeg-devel] [PATCH v3 5/7] avformat/tests: add test for ff_rescale_interval()

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/Makefile | 1 + libavformat/tests/.gitignore | 1 + libavformat/tests/seek_utils.c | 57 ++ tests/fate/libavformat.mak | 5 +++ 4 files changed, 64 insertions(+) create mode 100644 libavformat/tests/

[FFmpeg-devel] [PATCH v3 4/7] avformat/seek: add ff_rescale_interval() function

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux Refactors a function used by avformat/concat and avformat/imf. --- libavformat/avio_internal.h | 21 + libavformat/seek.c | 10 ++ 2 files changed, 31 insertions(+) diff --git a/libavformat/avio_internal.h b/libavformat/avio_int

[FFmpeg-devel] [PATCH v3 3/7] avformat/imf: clean-up and reduce logging

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 93 ++-- 1 file changed, 29 insertions(+), 64 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index f208b262c3..ac212b05e1 100644 --- a/libavformat/imfdec.c +++ b/libavformat/im

[FFmpeg-devel] [PATCH v3 2/7] avformat/imf: add support for input seeking

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer did not implement AVInputFormat::read_seek2(), resulting in inefficient input seeking. Addresses https://trac.ffmpeg.org/ticket/9648 Byte- and frame-seeking are not supported. --- libavformat/imfdec.c | 129 ++---

[FFmpeg-devel] [PATCH v3 1/7] avformat/imf: relocate static function imf_time_to_ts()

2022-03-07 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 3ce850b75a..b98af020d2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c

[FFmpeg-devel] [PATCH v2 7/7] avformat/concat: refactor to use av_rescale_interval()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/concatdec.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 0603c6e254..3ddbe833c9 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -

[FFmpeg-devel] [PATCH v2 6/7] avformat/imf: refactor to use av_rescale_interval()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index ac212b05e1..bc27e3cc2a 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -69,6 +69,7 @@

[FFmpeg-devel] [PATCH v2 5/7] avutil/tests: add test for avutil/mathematics

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavutil/Makefile| 1 + libavutil/tests/.gitignore| 1 + libavutil/tests/mathematics.c | 57 +++ tests/fate/libavutil.mak | 5 +++ 4 files changed, 64 insertions(+) create mode 100644 libavutil/tests/mathe

[FFmpeg-devel] [PATCH v2 4/7] avutil/mathematics: add av_rescale_interval() function

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux Refactors a function used by avformat/concat and avformat/imf. --- libavutil/mathematics.c | 10 ++ libavutil/mathematics.h | 21 + 2 files changed, 31 insertions(+) diff --git a/libavutil/mathematics.c b/libavutil/mathematics.c index f4

[FFmpeg-devel] [PATCH v2 3/7] avformat/imf: clean-up and reduce logging

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 93 ++-- 1 file changed, 29 insertions(+), 64 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index f208b262c3..ac212b05e1 100644 --- a/libavformat/imfdec.c +++ b/libavformat/im

[FFmpeg-devel] [PATCH v2 2/7] avformat/imf: add support for input seeking

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer did not implement AVInputFormat::read_seek2(), resulting in inefficient input seeking. Addresses https://trac.ffmpeg.org/ticket/9648 Byte- and frame-seeking are not supported. --- libavformat/imfdec.c | 129 ++---

[FFmpeg-devel] [PATCH v2 1/7] avformat/imf: relocate static function imf_time_to_ts()

2022-02-20 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 3ce850b75a..b98af020d2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c

[FFmpeg-devel] [PATCH v4 3/3] avformat/imf: document IMFVirtualTrackResourcePlaybackCtx

2022-02-16 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 17a21f5ef9..143f1086b6 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -96,12 +96,12 @@ typedef

[FFmpeg-devel] [PATCH v4 2/3] avformat/imf: fix packet pts, dts and muxing

2022-02-16 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer does not set the DTS and PTS of packets accurately in all scenarios. Moreover, audio packets are not trimmed when they exceed the duration of the underlying resource. imf-cpl-with-repeat FATE ref file is regenerated. Addresses https://trac.ffmpeg.org

[FFmpeg-devel] [PATCH v4 1/3] avformat/imf: open resources only when first needed

2022-02-16 Thread pal
From: Pierre-Anthony Lemieux IMF CPLs can reference thousands of files, which can result in system limits for the number of open files to be exceeded. The following patch opens and closes files as needed. Addresses https://trac.ffmpeg.org/ticket/9623 --- libavformat/imfdec.c | 17 ++---

[FFmpeg-devel] [PATCH] avformat/tests: add /imf to .gitignore

2022-02-04 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/tests/.gitignore b/libavformat/tests/.gitignore index 7ceb7a356b..aabf76345e 100644 --- a/libavformat/tests/.gitignore +++ b/libavformat/tests/.gitignore @@ -1,4 +1,5 @@

[FFmpeg-devel] [PATCH v3 4/4] avformat/imf: document IMFVirtualTrackResourcePlaybackCtx

2022-02-02 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5be4411cb1..02e7bcc33f 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -96,12 +96,12 @@ typedef

[FFmpeg-devel] [PATCH v3 3/4] avformat/imf: fix packet pts, dts and muxing

2022-02-02 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer does not set the DTS and PTS of packets accurately in all scenarios. Moreover, audio packets are not trimmed when they exceed the duration of the underlying resource. imf-cpl-with-repeat FATE ref file is regenerated. Addresses https://trac.ffmpeg.org

[FFmpeg-devel] [PATCH v3 2/4] avformat/imf: fix missing error reporting when opening resources

2022-02-02 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index e6a1020ecc..658ddc40f2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -550,7 +550,9 @@ static int set_co

[FFmpeg-devel] [PATCH v3 1/4] avformat/imf: open resources only when first needed

2022-02-02 Thread pal
From: Pierre-Anthony Lemieux IMF CPLs can reference thousands of files, which can result in system limits for the number of open files to be exceeded. The following patch opens and closes files as needed. Addresses https://trac.ffmpeg.org/ticket/9623 --- libavformat/imfdec.c | 15 -

[FFmpeg-devel] [PATCH v2 4/4] avformat/imf: document IMFVirtualTrackResourcePlaybackCtx

2022-02-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 5be4411cb1..02e7bcc33f 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -96,12 +96,12 @@ typedef

[FFmpeg-devel] [PATCH v2 3/4] avformat/imf: fix packet pts, dts and muxing

2022-02-01 Thread pal
From: Pierre-Anthony Lemieux The IMF demuxer does not set the DTS and PTS of packets accurately in all scenarios. Moreover, audio packets are not trimmed when they exceed the duration of the underlying resource. Addresses https://trac.ffmpeg.org/ticket/9611 --- libavformat/imfdec.c | 263 +

[FFmpeg-devel] [PATCH v2 2/4] avformat/imf: fix missing error reporting when opening resources

2022-02-01 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index e6a1020ecc..658ddc40f2 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -550,7 +550,9 @@ static int set_co

[FFmpeg-devel] [PATCH v2 1/4] avformat/imf: open resources only when first needed

2022-02-01 Thread pal
From: Pierre-Anthony Lemieux IMF CPLs can reference thousands of files, which can result in system limits for the number of open files to be exceeded. The following patch opens and closes files as needed. Addresses https://trac.ffmpeg.org/ticket/9623 --- libavformat/imfdec.c | 15 -

[FFmpeg-devel] [PATCH v1 4/4] avformat/imf: document IMFVirtualTrackResourcePlaybackCtx

2022-01-30 Thread pal
From: Pierre-Anthony Lemieux --- libavformat/imfdec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/imfdec.c b/libavformat/imfdec.c index 05dcb6ff31..9f9087f936 100644 --- a/libavformat/imfdec.c +++ b/libavformat/imfdec.c @@ -95,12 +95,12 @@ typedef

  1   2   >