[FFmpeg-devel] [PATCH V2 6/7] libavformat/smoothstreamingenc.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
Part of the build message: src/libavformat/smoothstreamingenc.c: In function ‘ism_flush’: src/libavformat/smoothstreamingenc.c:510:49: warning: ‘/temp’ directive output may be truncated writing 5 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] snprintf(filename, siz

[FFmpeg-devel] [PATCH V2 5/7] libavformat/protocols.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-24 Thread Guo, Yejun
src/libavformat/protocols.c: In function ‘avio_enum_protocols’: src/libavformat/protocols.c:116:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] p = p ? p + 1 : url_protocols; ^ Signed-off-by: Guo, Yejun --- libavformat/protocols.c

[FFmpeg-devel] [PATCH V2 7/7] libavutil/opt.c: fix build warning for [-Wdiscarded-qualifiers]

2021-02-24 Thread Guo, Yejun
src/libavutil/opt.c: In function ‘av_opt_child_class_iterate’: src/libavutil/opt.c:1738:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] *iter = parent->child_class_next(*iter); ^ Signed-off-by: Guo, Yejun --- libavutil

[FFmpeg-devel] [PATCH V2 4/7] libavformat/dashenc.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
Part of warning message: src/libavformat/dashenc.c: In function ‘flush_init_segment’: src/libavformat/dashenc.c:608:49: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] snprintf(filename, sizeof(filen

[FFmpeg-devel] [PATCH V2 3/7] libavfilter/vf_vif.c: fix build warning for [-Wmain]

2021-02-24 Thread Guo, Yejun
src/libavfilter/vf_vif.c: In function ‘process_frame’: src/libavfilter/vf_vif.c:542:20: warning: ‘main’ is usually a function [-Wmain] AVFrame *out, *main = NULL, *ref = NULL; ^~~~ Signed-off-by: Guo, Yejun --- libavfilter/vf_vif.c | 14 +++--- 1 file changed, 7

[FFmpeg-devel] [PATCH V2 2/7] libavfilter/vf_ssim.c: fix build warning for [-Wmain]

2021-02-24 Thread Guo, Yejun
The build warning message: src/libavfilter/vf_ssim.c: In function ‘ssim_plane_16bit’: src/libavfilter/vf_ssim.c:246:24: warning: ‘main’ is usually a function [-Wmain] const uint8_t *main = td->main_data[c]; ^~~~ src/libavfilter/vf_ssim.c: In function ‘ssim_plane’: s

[FFmpeg-devel] [PATCH V2 1/7] libavdevice/v4l2.c: fix build warning for [-Wformat-truncation=]

2021-02-24 Thread Guo, Yejun
Here is the warning message: src/libavdevice/v4l2.c: In function ‘v4l2_get_device_list’: src/libavdevice/v4l2.c:1054:58: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 251 [-Wformat-truncation=] snprintf(device_name, sizeof(device_name), "/de

Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: 2021年2月24日 23:15 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning > > > > > -Original Message- > > From: ffmpeg-devel O

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: 2021年2月22日 15:31 > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V3 3/3] libavfilter: add filter dnn_detect for object > detection > > Below are the example steps to do object detection: > > 1. download and install l_op

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/transform: Stop exporting internal functions

2021-02-24 Thread Paul B Mahol
On Thu, Feb 25, 2021 at 1:32 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > James Almer: > > On 2/24/2021 11:22 AM, Andreas Rheinhardt wrote: > >> avfilter_transform, avfilter_(add|sub|mult)_matrix are not part of the > >> public API (transform.h is not a public header), yet they a

Re: [FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Paul B Mahol
On Wed, Feb 24, 2021 at 9:48 PM Werner Robitza wrote: > On Wed, Feb 24, 2021 at 9:11 PM Paul B Mahol wrote: > > > > Why duplicating code that would give same output as ffprobe? > > I was told to here: > http://ffmpeg.org/pipermail/ffmpeg-devel/2021-February/275510.html > > Could please show an e

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/transform: Stop exporting internal functions

2021-02-24 Thread Andreas Rheinhardt
James Almer: > On 2/24/2021 11:22 AM, Andreas Rheinhardt wrote: >> avfilter_transform, avfilter_(add|sub|mult)_matrix are not part of the >> public API (transform.h is not a public header), yet they are currently >> exported because of their name. This commit changes this: >> avfilter_transform is

Re: [FFmpeg-devel] Feature request

2021-02-24 Thread Paul B Mahol
Not possible. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] Feature request

2021-02-24 Thread Jimmy Jaffe
Hi people. Now it is very common videos recorded with bad rotations. With ffmpeg it is possible to rotate without re-encoding the video using the 'rotate' instruction. But if the video has more than one rotation it is not possible. Will it be possible to add rotation instructions with time? For

Re: [FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Werner Robitza
On Wed, Feb 24, 2021 at 9:51 PM Nicolas George wrote: > I never told you to duplicate code. Code duplication is almost always a > motive for rejection. > > If you are tempted to duplicate code, what you need to do is to share it > between the various places that use it. Making it a proper API if >

Re: [FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Nicolas George
Werner Robitza (12021-02-24): > I was told to here: > http://ffmpeg.org/pipermail/ffmpeg-devel/2021-February/275510.html I never told you to duplicate code. Code duplication is almost always a motive for rejection. If you are tempted to duplicate code, what you need to do is to share it between t

Re: [FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Werner Robitza
On Wed, Feb 24, 2021 at 9:11 PM Paul B Mahol wrote: > > Why duplicating code that would give same output as ffprobe? I was told to here: http://ffmpeg.org/pipermail/ffmpeg-devel/2021-February/275510.html Could please show an example on how to achieve this with ffprobe? __

Re: [FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Paul B Mahol
Why duplicating code that would give same output as ffprobe? On Wed, Feb 24, 2021 at 9:01 PM Werner Robitza wrote: > This adds a new option to the metadata filter that allows outputting CSV > data. > The separator can be set via another option. > Special characters are handled via escaping. > >

[FFmpeg-devel] [PATCH] filters/metadata: add CSV output support

2021-02-24 Thread Werner Robitza
This adds a new option to the metadata filter that allows outputting CSV data. The separator can be set via another option. Special characters are handled via escaping. Signed-off-by: Werner Robitza --- doc/filters.texi | 14 libavfilter/f_metadata.c | 155 +

Re: [FFmpeg-devel] [PATCH v7 8/8] libavfilter/vf_deinterlace_qsv: enabling d3d11va support, added mfxhdlpair

2021-02-24 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Artem Galin > Sent: Tuesday, November 3, 2020 7:46 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Artem Galin > Subject: [FFmpeg-devel] [PATCH v7 8/8] libavfilter/vf_deinterlace_qsv: > enabling d3d11va support, added mfxhdlpair > > Addin

Re: [FFmpeg-devel] [PATCH v7 2/8] libavutil/hwcontext_qsv: supporting d3d11va device type

2021-02-24 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Artem Galin > Sent: Tuesday, November 3, 2020 7:46 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Artem Galin > Subject: [FFmpeg-devel] [PATCH v7 2/8] libavutil/hwcontext_qsv: supporting > d3d11va device type > > This enables usage of no

Re: [FFmpeg-devel] Proposal of two projects for GSoC

2021-02-24 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Artem Galin > Sent: Wednesday, February 24, 2021 4:40 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: [FFmpeg-devel] Proposal of two projects for GSoC > > > Please find the proposal for the fol

Re: [FFmpeg-devel] [FFmpeg-web][PATCH] web/download: add signing key and verification instructions

2021-02-24 Thread Thilo Borgmann
Am 24.02.21 um 05:06 schrieb Zane van Iperen: > As per discussion at [1]. Patches attached. > > Patch 1/3 adds /node_modules/ to .gitignore > > Patch 2/3 adds the actual key and verification instructions > > Patch 3/3 adds a prominent download link for the public key. > This might be bit obnoxio

[FFmpeg-devel] [PATCH] avcodec/x86: add cfhdenc SIMD

2021-02-24 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/cfhdencdsp.c | 3 + libavcodec/x86/Makefile | 2 + libavcodec/x86/cfhdencdsp.asm| 429 +++ libavcodec/x86/cfhdencdsp_init.c | 48 4 files changed, 482 insertions(+) create mode 100644 libavcode

Re: [FFmpeg-devel] [PATCH 3/3] avformat: add Digital Pictures SGA game demuxer

2021-02-24 Thread Paul B Mahol
On Wed, Feb 24, 2021 at 4:47 PM Anton Khirnov wrote: > Quoting Paul B Mahol (2021-02-23 18:25:09) > > Signed-off-by: Paul B Mahol > > --- > > libavformat/Makefile | 1 + > > libavformat/allformats.c | 1 + > > libavformat/sga.c| 388 +++ > > 3

Re: [FFmpeg-devel] [PATCH 3/3] avformat: add Digital Pictures SGA game demuxer

2021-02-24 Thread Anton Khirnov
Quoting Paul B Mahol (2021-02-23 18:25:09) > Signed-off-by: Paul B Mahol > --- > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/sga.c| 388 +++ > 3 files changed, 390 insertions(+) > create mode 100644 libavformat/s

[FFmpeg-devel] Proposal of two projects for GSoC

2021-02-24 Thread Artem Galin
Hello, Please find the proposal for the following two projects for GSoC this year. The FATE project had been proposed earlier already but I don't know why it didn't happen. I previously got the feedback from Thilo Borgmann and would be happy to get feedback from the community as well. "

Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Anton > Khirnov > Sent: 2021年2月24日 22:05 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning > > Quoting Guo, Yejun (2021-02-20 08:22:11) > > Here is the

Re: [FFmpeg-devel] [PATCH] lavc/lscrdec: use ff_reget_buffer()

2021-02-24 Thread James Almer
On 2/24/2021 5:40 AM, Anton Khirnov wrote: It is simpler and more efficient. Suggested-by: James Almer --- libavcodec/lscrdec.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/libavcodec/lscrdec.c b/libavcodec/lscrdec.c index d5388c22ac..e706dda9da 1006

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/transform: Stop exporting internal functions

2021-02-24 Thread James Almer
On 2/24/2021 11:22 AM, Andreas Rheinhardt wrote: avfilter_transform, avfilter_(add|sub|mult)_matrix are not part of the public API (transform.h is not a public header), yet they are currently exported because of their name. This commit changes this: avfilter_transform is renamed to ff_affine_tran

Re: [FFmpeg-devel] [PATCH 1/2] avfilter/transform: Stop exporting internal functions

2021-02-24 Thread Paul B Mahol
lgtm ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH 0/4] avcodec Loongson-2 MMI fixes

2021-02-24 Thread Jiaxun Yang
On Tue, Feb 23, 2021, at 2:47 PM, 殷时友 wrote: > > > 2021年2月19日 下午1:28,Jiaxun Yang 写道: > > > > Get MMI optimizations build for Loongson-2 again. > > Tested on Loongson-2 and Loongson-3A. > > > > Jiaxun Yang (4): > > avutil/mips: Use MMI_{L,S}QC1 macro in {SAVE,RECOVER}_REG > > avutil/mips: Ex

[FFmpeg-devel] Re: [PATCH] avformat/vividas: Use signed n in read_sb_block()

2021-02-24 Thread Anton Khirnov
Quoting Michael Niedermayer (2021-02-15 21:31:23) > Fixes: OOM > Fixes: > 27780/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5097985075314688 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer

[FFmpeg-devel] [PATCH 2/2] avfilter/Makefile: Don't compile transform.c unconditionally

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavfilter/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavfilter/Makefile b/libavfilter/Makefile index 359ea7f903..f63b395fbd 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -19,7 +19,6 @@ OBJS = allfil

[FFmpeg-devel] [PATCH 1/2] avfilter/transform: Stop exporting internal functions

2021-02-24 Thread Andreas Rheinhardt
avfilter_transform, avfilter_(add|sub|mult)_matrix are not part of the public API (transform.h is not a public header), yet they are currently exported because of their name. This commit changes this: avfilter_transform is renamed to ff_affine_transform; the other functions are just removed as they

[FFmpeg-devel] Re: [PATCH 4/8] libavformat/dashenc.c: fix build warning

2021-02-24 Thread Anton Khirnov
Quoting Guo, Yejun (2021-02-20 08:22:14) > Part of warning message: > src/libavformat/dashenc.c: In function ‘flush_init_segment’: > src/libavformat/dashenc.c:608:49: warning: ‘%s’ directive output may be > truncated writing up to 1023 bytes into a region of size between 1 and 1024 > [-Wformat-tr

Re: [FFmpeg-devel] [PATCH] vp9: fix a race in exporting encoding parameters

2021-02-24 Thread James Almer
On 2/24/2021 6:33 AM, Anton Khirnov wrote: Modifying shared state after ff_thread_finish_setup() is not allowed, so set the encoding parameters directly on the output frame. Does this also ensure the side data will be present in show_existing_frame frames? This means the "ret == 0" case when

Re: [FFmpeg-devel] [PATCH 1/8] libavdevice/v4l2.c: fix build warning

2021-02-24 Thread Anton Khirnov
Quoting Guo, Yejun (2021-02-20 08:22:11) > Here is the warning message: > src/libavdevice/v4l2.c: In function ‘v4l2_get_device_list’: > src/libavdevice/v4l2.c:1054:58: warning: ‘%s’ directive output may be > truncated writing up to 255 bytes into a region of size 251 > [-Wformat-truncation=] >

Re: [FFmpeg-devel] [PATCH 1/5] tests/api-band-test: simplify code

2021-02-24 Thread James Almer
On 2/24/2021 7:03 AM, Anton Khirnov wrote: --- tests/api/api-band-test.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index 34bed1d6be..717c9441a4 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/xpm: Minor speed increase for mod_strcspn() {string, reject}==0

2021-02-24 Thread Moritz Barsnick
On Mon, Feb 22, 2021 at 20:32:14 -0800, Jose Da Silva wrote: > -for (i = 0; string && string[i]; i++) { > +if (string == 0) "if (!string)" is the preferred style for pointers. But I don't see the advantage - isn't the loop interrupted immediately anyway if string == NULL? (Same for the ot

Re: [FFmpeg-devel] [PATCH 2/5] tests/api-flac-test: ensure the frame is writable before writing to it

2021-02-24 Thread James Almer
On 2/24/2021 7:03 AM, Anton Khirnov wrote: The encoder may keep a reference to frames that were sent to it, so the caller cannot modify them without checking first. --- tests/api/api-flac-test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/api/api-flac-test.c b/tests/api/api-f

Re: [FFmpeg-devel] [PATCH] avutil/buffer: free all pooled buffers immediately after uninitializing the pool

2021-02-24 Thread James Almer
On 2/24/2021 5:23 AM, Anton Khirnov wrote: Quoting James Almer (2021-02-20 14:21:47) No buffer will be fetched from the pool after it's uninitialized, so there's no benefit from waiting until every single buffer has been returned to it before freeing them all. This should free some memory in cer

[FFmpeg-devel] [PATCH 2/3] libavformat/hls: add support for decryption of HLS streams in MPEG-TS format protected using SAMPLE-AES encryption

2021-02-24 Thread Nachiket Tarate
Apple HTTP Live Streaming Sample Encryption: https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption Signed-off-by: Nachiket Tarate --- libavformat/Makefile | 2 +- libavformat/hls.c| 105 -- libavformat/hls_sample_aes.c |

[FFmpeg-devel] [PATCH 15/15] avformt/webmdashenc: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids calculating the length separately. Signed-off-by: Andreas Rheinhardt --- libavformat/webmdashenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashenc.c index 04f8cbe39d..332d0466e1 100

[FFmpeg-devel] [PATCH 14/15] avformat/matroskadec: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids calculating the length separately. Signed-off-by: Andreas Rheinhardt --- libavformat/matroskadec.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 1f96b49fc4..c03cd8bd0

[FFmpeg-devel] [PATCH 13/15] avformat/avio: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids calculating the length in advance. Signed-off-by: Andreas Rheinhardt --- libavformat/avio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index fbe07e44bc..8011482e76 100644 --- a/libavforma

[FFmpeg-devel] [PATCH 12/15] fftools/cmdutils: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids searching for a delimiter in advance. Signed-off-by: Andreas Rheinhardt --- fftools/cmdutils.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 4eb68d2201..fe253d10a4 100644 --- a/fftool

[FFmpeg-devel] [PATCH 11/15] avutil/spherical: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids calculating the length separately. Signed-off-by: Andreas Rheinhardt --- libavutil/spherical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavutil/spherical.c b/libavutil/spherical.c index 4a7f3e49ca..ed66344a2f 100644 --- a/li

[FFmpeg-devel] [PATCH 10/15] avutil/stereo3d: Use av_strstart instead of strncmp

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and avoids calculating the length separately. Signed-off-by: Andreas Rheinhardt --- libavutil/stereo3d.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c index 6edcdb1796..279fcc1ff3 100644 --- a/liba

[FFmpeg-devel] [PATCH 09/15] avutil/pixdesc: Use av_strstart where appropriate

2021-02-24 Thread Andreas Rheinhardt
It makes the intent clearer and allows to avoid calculating the strlen separately. Signed-off-by: Andreas Rheinhardt --- libavutil/pixdesc.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 827

[FFmpeg-devel] [PATCH 08/15] avformat/pcmdec: Beautify pcm_read_header

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/pcmdec.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index cd3e7b2e8f..9b552936ac 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -

[FFmpeg-devel] [PATCH 07/15] avformat/pcmdec: Simplify parsing MIME type

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/pcmdec.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index 395d9ecf92..cd3e7b2e8f 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -19,6 +19,7 @@ * F

[FFmpeg-devel] [PATCH 06/15] avformat/pcmdec: Fix NULL + 1

2021-02-24 Thread Andreas Rheinhardt
It is undefined behaviour. Signed-off-by: Andreas Rheinhardt --- libavformat/pcmdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c index e65b535665..395d9ecf92 100644 --- a/libavformat/pcmdec.c +++ b/libavformat/pcmdec.c @@ -57

[FFmpeg-devel] [PATCH 05/15] avformat/pcm(dec|enc): Don't include disabled (de)muxers

2021-02-24 Thread Andreas Rheinhardt
Also make the macro used for the demuxers spec-compliant. The earlier macro was not, because the ... argument of a variadic macro must not be left out. GCC and Clang warn about this when using -pedantic. Signed-off-by: Andreas Rheinhardt --- libavformat/pcmdec.c | 102 ---

[FFmpeg-devel] [PATCH 04/15] avformat/movenc: Only check for timecodes if they are used

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/movenc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index cf0e35dd33..8ac5c317b4 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6387,7 +6387,6 @@ static

[FFmpeg-devel] [PATCH 03/15] fftools/ffmpeg, ffplay: Don't set refcounted_frames

2021-02-24 Thread Andreas Rheinhardt
It only affects the old and deprecated avcodec_decode_(video2|audio4) API which is no longer used here. Signed-off-by: Andreas Rheinhardt --- I am surprised that no one found this before me. Is it because there was no -Wdeprecated-declarations warning? fftools/ffmpeg.c | 1 - fftools/ffplay.c |

[FFmpeg-devel] [PATCH 02/15] avformat/movenc: Don't check for disabled muxers

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- Given that the name of every possible muxer here has a strlen of three or four one could even replace the strcmp by AV_RN32(s->oformat->name) == AV_RN32(#muxer). libavformat/movenc.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) dif

[FFmpeg-devel] [PATCH 01/15] avformat/movenc: Remove always true check

2021-02-24 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/movenc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 545b0885ae..cdfcbd3d76 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6395,7 +6395,6 @@ static int mov_init(AVFormatC

[FFmpeg-devel] [PATCH 1/3] libavcodec/adts_header: add frame_length field and avpriv function to parse AAC ADTS header

2021-02-24 Thread Nachiket Tarate
These will be used by HLS demuxer in case of SAMPLE-AES decryption. Signed-off-by: Nachiket Tarate --- libavcodec/adts_header.c | 1 + libavcodec/adts_header.h | 14 ++ libavcodec/adts_parser.c | 28 3 files changed, 43 insertions(+) diff --git a/libavc

[FFmpeg-devel] [PATCH 3/3] libavformat/hls: correct indentation

2021-02-24 Thread Nachiket Tarate
Signed-off-by: Nachiket Tarate --- libavformat/hls.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 3cb3853c79..d612ebb185 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2028,23 +2028

[FFmpeg-devel] [PATCH] Handle AVID MJPEG streams directly in the MJPEG decoder.

2021-02-24 Thread Anton Khirnov
AVID streams - currently handled by the AVRN decoder - can be (depending on extradata contents) either MJPEG or raw video. To decode the MJPEG variant, the AVRN decoder currently instantiates a MJPEG decoder internally and forwards decoded frames to the caller (possibly after cropping them). This

[FFmpeg-devel] [PATCH] Handle AVID MJPEG streams directly in the MJPEG decoder.

2021-02-24 Thread Anton Khirnov
AVID streams - currently handled by the AVRN decoder - can be (depending on extradata contents) either MJPEG or raw video. To decode the MJPEG variant, the AVRN decoder currently instantiates a MJPEG decoder internally and forwards decoded frames to the caller (possibly after cropping them). This

[FFmpeg-devel] [PATCH 2/5] tests/api-flac-test: ensure the frame is writable before writing to it

2021-02-24 Thread Anton Khirnov
The encoder may keep a reference to frames that were sent to it, so the caller cannot modify them without checking first. --- tests/api/api-flac-test.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c index 3fea3258f3..7c96a4d99e 100644

[FFmpeg-devel] [PATCH 4/5] tests/api-flac-test: reindent

2021-02-24 Thread Anton Khirnov
--- tests/api/api-flac-test.c | 42 +++ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c index 3d83c56987..b67c3d7363 100644 --- a/tests/api/api-flac-test.c +++ b/tests/api/api-flac-test.c @@ -

[FFmpeg-devel] [PATCH 3/5] tests/api-flac-test: convert to new encoding/decoding API

2021-02-24 Thread Anton Khirnov
--- tests/api/api-flac-test.c | 40 +-- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/tests/api/api-flac-test.c b/tests/api/api-flac-test.c index 7c96a4d99e..3d83c56987 100644 --- a/tests/api/api-flac-test.c +++ b/tests/api/api-flac-test.c @@ -

[FFmpeg-devel] [PATCH 5/5] lavc: remove tests/options

2021-02-24 Thread Anton Khirnov
It tests deprecated avcodec_copy_context(). --- libavcodec/Makefile| 1 - libavcodec/tests/options.c | 194 - tests/fate/libavcodec.mak | 4 - 3 files changed, 199 deletions(-) delete mode 100644 libavcodec/tests/options.c diff --git a/libavcodec/

[FFmpeg-devel] [PATCH 1/5] tests/api-band-test: simplify code

2021-02-24 Thread Anton Khirnov
--- tests/api/api-band-test.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index 34bed1d6be..717c9441a4 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-test.c @@ -167,10 +167,8 @@ static int video_de

[FFmpeg-devel] [PATCH] Handle AVID MJPEG streams directly in the MJPEG decoder.

2021-02-24 Thread Anton Khirnov
AVID streams - currently handled by the AVRN decoder - can be (depending on extradata contents) either MJPEG or raw video. To decode the MJPEG variant, the AVRN decoder currently instantiates a MJPEG decoder internally and forwards decoded frames to the caller (possibly after cropping them). This

[FFmpeg-devel] [PATCH] vp9: fix a race in exporting encoding parameters

2021-02-24 Thread Anton Khirnov
Modifying shared state after ff_thread_finish_setup() is not allowed, so set the encoding parameters directly on the output frame. Found-by: James Almer --- libavcodec/vp9.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.

Re: [FFmpeg-devel] [PATCH] vp9dec: support exporting QP tables through the AVVideoEncParams API

2021-02-24 Thread Anton Khirnov
Quoting James Almer (2021-02-19 17:28:57) > On 5/11/2020 6:32 AM, Anton Khirnov wrote: > > --- > > Now the nb_block_structure reset is moved to decode_frame_header(), > > which fixes block-structure export with frame threading. No idea how I > > didn't notice this before > > Thread sanitizer compl

[FFmpeg-devel] Re: [PATCH 4/4] fftools/ffmpeg: drop an FF_API-guarded block

2021-02-24 Thread Anton Khirnov
Quoting James Almer (2021-01-26 18:19:46) > On 1/26/2021 2:01 PM, Anton Khirnov wrote: > > These macros are private and should not be used by external callers. > > --- > > fftools/ffmpeg_opt.c | 13 - > > 1 file changed, 13 deletions(-) > > > > diff --git a/fftools/ffmpeg_opt.c b/ff

[FFmpeg-devel] [PATCH] lavc/lscrdec: use ff_reget_buffer()

2021-02-24 Thread Anton Khirnov
It is simpler and more efficient. Suggested-by: James Almer --- libavcodec/lscrdec.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/libavcodec/lscrdec.c b/libavcodec/lscrdec.c index d5388c22ac..e706dda9da 100644 --- a/libavcodec/lscrdec.c +++ b/libavcodec/

[FFmpeg-devel] Re: [PATCH 2/6] lavc: split LSCR decoder out of PNG decoder

2021-02-24 Thread Anton Khirnov
Quoting James Almer (2021-02-20 15:38:42) > > + > > +static void handle_row(LSCRContext *s, AVFrame *frame) > > Unused frame argument. Right, dropped locally. > > +static int decode_frame_lscr(AVCodecContext *avctx, > > + void *data, int *got_frame, > > +

Re: [FFmpeg-devel] [PATCH] avutil/buffer: free all pooled buffers immediately after uninitializing the pool

2021-02-24 Thread Anton Khirnov
Quoting James Almer (2021-02-20 14:21:47) > No buffer will be fetched from the pool after it's uninitialized, so there's > no benefit from waiting until every single buffer has been returned to it > before freeing them all. > This should free some memory in certain scenarios, which can be beneficia