Re: [FFmpeg-devel] 4.4 Release Name

2021-04-04 Thread Paul B Mahol
Stop raising tensions here. On Sat, Apr 3, 2021 at 10:07 PM Kieran Kunhya wrote: > Hey code of conduct committee, can we ban this person? > > Kieran > > Sent from my mobile device > > On Sat, 3 Apr 2021, 22:06 RADSL, wrote: > > > > > On 4/3/2021 12:47 PM, Kieran Kunhya wrote: > > > Who are you

Re: [FFmpeg-devel] [RFC] CFHD

2021-04-04 Thread Paul B Mahol
On Sat, Apr 3, 2021 at 1:01 PM Anton Khirnov wrote: > Quoting Michael Niedermayer (2021-04-02 20:27:24) > > Hi all > > > > CFHD currently has even with all fixes (ignoring ones with objections) > applied a null pointer > > read and out of array write issue remaining. > > > > My patch which makes

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cfhd: Check transform_type consistently

2021-04-04 Thread Paul B Mahol
As always, make sure that you do not break or add new regressions for decoding existing valid files. On Sat, Apr 3, 2021 at 4:54 PM Michael Niedermayer wrote: > On Sat, Apr 03, 2021 at 04:39:06PM +0200, Michael Niedermayer wrote: > > Fixes: out of array accesses > > Fixes: > 29754/clusterfuzz-te

[FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Andreas Rheinhardt
Fixes the following GCC warning: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] Signed-off-by: Andreas Rheinhardt --- Will apply soon. libavfilter/vf_find_rect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Gyan Doshi
On 2021-04-04 15:01, Andreas Rheinhardt wrote: Fixes the following GCC warning: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] Weird. I switched to lld because gcc (10.2) recommended it. In fact, I just looked t

Re: [FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Nicolas George
Gyan Doshi (12021-04-04): > > Fixes the following GCC warning: > > warning: format ‘%lld’ expects argument of type ‘long long int’, > > but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] > > Weird. I switched to lld because gcc (10.2) recommended it. > > In fact, I just looked through

Re: [FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Andreas Rheinhardt
Gyan Doshi: > > > On 2021-04-04 15:01, Andreas Rheinhardt wrote: >> Fixes the following GCC warning: >> warning: format ‘%lld’ expects argument of type ‘long long int’, >> but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] > > Weird. I switched to lld because gcc (10.2) recommended i

Re: [FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Gyan Doshi
On 2021-04-04 15:29, Andreas Rheinhardt wrote: Gyan Doshi: On 2021-04-04 15:01, Andreas Rheinhardt wrote: Fixes the following GCC warning: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ {aka ‘long int’} [-Wformat=] Weird. I switched to lld

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
Guo, Yejun (12021-04-01): > > Is this allowed to be negative? Can/should this be size_t? > There was a long discussion about size_t/int/uint32_t when I added > struct AVRegionOfInterest in frame.h, and finally size_t is not chosen. Then at least unsigned. > yes, we can add a version number (enum

Re: [FFmpeg-devel] [PATCH] avformat/mpegtsenc: Preserve disposition in the absence of language

2021-04-04 Thread Marton Balint
On Sat, 3 Apr 2021, Andreas Rheinhardt wrote: Implements ticket #9113. Signed-off-by: Andreas Rheinhardt --- libavformat/mpegtsenc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 35c835c484..dbd3b

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread James Almer
On 4/4/2021 7:01 AM, Nicolas George wrote: Guo, Yejun (12021-04-01): Is this allowed to be negative? Can/should this be size_t? There was a long discussion about size_t/int/uint32_t when I added struct AVRegionOfInterest in frame.h, and finally size_t is not chosen. Then at least unsigned.

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Andreas Rheinhardt
Nicolas George: > Guo, Yejun (12021-04-01): >>> Is this allowed to be negative? Can/should this be size_t? >> There was a long discussion about size_t/int/uint32_t when I added >> struct AVRegionOfInterest in frame.h, and finally size_t is not chosen. > > Then at least unsigned. > >> yes, we can

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Andreas Rheinhardt
James Almer: > On 4/4/2021 7:01 AM, Nicolas George wrote: >> Guo, Yejun (12021-04-01): Is this allowed to be negative? Can/should this be size_t? >>> There was a long discussion about size_t/int/uint32_t when I added >>> struct AVRegionOfInterest in frame.h, and finally size_t is not chosen. >

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
James Almer (12021-04-04): > This solution is what was used for video_enc_params.h, so i agree it should > be used here too. What's missing is a check for idx < nb_bbox before > accessing the offset in question, so an inline function instead of a #define > with a check for the above would be needed

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
Andreas Rheinhardt (12021-04-04): > That's a variable-length array. That's a C99 feature we do not require. We have used variable-length arrays in the past. We have eliminated them from our code base not because lack of support, IIRC, but because they have a tendency to ruin compiler optimization.

[FFmpeg-devel] [PATCH 2/3] avformat/rtsp: Reindent after previous commit

2021-04-04 Thread Andriy Gelman
From: Andriy Gelman Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 76efbf42cd..6438e2edb8 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1466,9 +1466,9 @@ i

[FFmpeg-devel] [PATCH 3/3] avformat/rtsp: Include rtcp in port range check

2021-04-04 Thread Andriy Gelman
From: Andriy Gelman Currently it is only checked that the rtp port does not exceed rtp_port_max. --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 6438e2edb8..e6a068148b 100644 --- a/libavformat/rtsp.c +++ b/l

[FFmpeg-devel] [PATCH 1/3] avformat/rtsp: Fix floating point exception for low min/max port range

2021-04-04 Thread Andriy Gelman
From: Andriy Gelman Fixed by setting port offset to zero when it cannot be computed. To reproduce: $ ffmpeg -min_port 32000 -max_port 32001 -i rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov -f null - [1]303871 floating point exception (core dumped) Signed-off-by: Andriy G

Re: [FFmpeg-devel] [PATCH] avformat/mpegtsenc: Preserve disposition in the absence of language

2021-04-04 Thread Andreas Rheinhardt
Marton Balint: > > > On Sat, 3 Apr 2021, Andreas Rheinhardt wrote: > >> Implements ticket #9113. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavformat/mpegtsenc.c | 18 +- >> 1 file changed, 9 insertions(+), 9 deletions(-) >> >> diff --git a/libavformat/mpegtsenc.c b/liba

Re: [FFmpeg-devel] [PATCH] avformat/mpegtsenc: Preserve disposition in the absence of language

2021-04-04 Thread Marton Balint
On Sun, 4 Apr 2021, Andreas Rheinhardt wrote: Marton Balint: On Sat, 3 Apr 2021, Andreas Rheinhardt wrote: Implements ticket #9113. Signed-off-by: Andreas Rheinhardt --- libavformat/mpegtsenc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfo

[FFmpeg-devel] [PATCH] avutil/video_enc_params: schedule the size overflow check for removal

2021-04-04 Thread James Almer
av_buffer_create() will start taking a size argument of size_t type. Signed-off-by: James Almer --- libavutil/video_enc_params.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/video_enc_params.c b/libavutil/video_enc_params.c index 635176ab91..e6a8e38d94 100644 --- a/libavutil/v

Re: [FFmpeg-devel] [RFC] CFHD

2021-04-04 Thread James Almer
On 4/4/2021 4:42 AM, Paul B Mahol wrote: On Sat, Apr 3, 2021 at 1:01 PM Anton Khirnov wrote: Quoting Michael Niedermayer (2021-04-02 20:27:24) Hi all CFHD currently has even with all fixes (ignoring ones with objections) applied a null pointer read and out of array write issue remaining.

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cfhd: Check transform_type consistently

2021-04-04 Thread James Almer
On 4/4/2021 4:46 AM, Paul B Mahol wrote: As always, make sure that you do not break or add new regressions for decoding existing valid files. Coverage of cfhd by FATE is really low. Pretty much half of the decoder is untested right now: http://coverage.ffmpeg.org/index.src_libavcodec_cfhd.c.h

[FFmpeg-devel] [PATCH] avformat/mov: check offset for overflow in mov_probe()

2021-04-04 Thread Michael Niedermayer
Fixes: Invalid read of size 4 Fixes: ASAN_Deadlysignal.zip Found-by: Hardik Shah Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 7805330bf9..ef73f3199d 100644 --- a/libavformat/mov.c +++ b

Re: [FFmpeg-devel] [PATCH] avformat/mov: check offset for overflow in mov_probe()

2021-04-04 Thread James Almer
On 4/4/2021 6:44 PM, Michael Niedermayer wrote: Fixes: Invalid read of size 4 Fixes: ASAN_Deadlysignal.zip Found-by: Hardik Shah Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 7805330

Re: [FFmpeg-devel] [PATCH 1/4] avformat/rtsp: set AV_OPT_FLAG_DEPRECATED on depracated options

2021-04-04 Thread Andriy Gelman
On Sun, 10. Jan 10:57, Andriy Gelman wrote: > On Thu, 17. Dec 10:42, Andriy Gelman wrote: > > On Tue, 08. Dec 22:35, Andriy Gelman wrote: > > > Hi Zhao, > > > > > > Thanks for reviewing. > > > > > > On Tue, 08. Dec 13:25, "zhilizhao(赵志立)" wrote: > > > > > > > > > > > > > On Dec 8, 2020, at 12:

[FFmpeg-devel] [PATCH 1/6] Revert "avcodec: add FF_CODEC_CAP_INIT_CLEANUP for all codecs which use ff_mpv_common_init()"

2021-04-04 Thread Andreas Rheinhardt
From: Andreas Rheinhardt This mostly reverts commit 4b2863ff01b1fe93d9a518523c9098d17a9d8c6f. Said commit removed the freeing code from ff_mpv_common_init(), ff_mpv_common_frame_size_change() and ff_mpeg_framesize_alloc() and instead added the FF_CODEC_CAP_INIT_CLEANUP to several codecs that use

[FFmpeg-devel] [PATCH 2/6] avcodec/mpegvideo: Fix memleak upon allocation error

2021-04-04 Thread Andreas Rheinhardt
From: Andreas Rheinhardt When slice-threading is used, ff_mpv_common_init() duplicates the first MpegEncContext and allocates some buffers for each MpegEncContext (the first as well as the copies). But the count of allocated MpegEncContexts is not updated until after everything has been allocated

[FFmpeg-devel] [PATCH 3/6] avcodec/mpegvideo: Factor common freeing code out

2021-04-04 Thread Andreas Rheinhardt
From: Andreas Rheinhardt Signed-off-by: Andreas Rheinhardt --- libavcodec/mpegvideo.c | 36 +++- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 7327204e99..7eddbdcc37 100644 --- a/libavcodec/m

[FFmpeg-devel] [PATCH 4/6] avcodec/rv10: Don't presume context to be initialized

2021-04-04 Thread Andreas Rheinhardt
In case of resolution changes rv20_decode_picture_header() closes and reopens its MpegEncContext; it checks the latter for errors, yet when an error happens, it might happen that no new attempt at reinitialization is performed when decoding the next frame; this leads to crashes lateron. This commi

[FFmpeg-devel] [PATCH 5/6] avcodec/rv34, mpegvideo: Fix segfault upon frame size change error

2021-04-04 Thread Andreas Rheinhardt
The RealVideo 3.0 and 4.0 decoders call ff_mpv_common_init() only during their init function and not during decode_frame(); when the size of the frame changes, they call ff_mpv_common_frame_size_change(). Yet upon error, said function calls ff_mpv_common_end() which frees the whole MpegEncContext a

[FFmpeg-devel] [PATCH 6/6] avcodec/h261dec: Initialize IDCT context during init

2021-04-04 Thread Andreas Rheinhardt
Before 998c9f15d1ca8c7489775ebcca51623b915988f1, initializing an MpegEncContext's IDCT parts occured in ff_mpv_common_init() and this has been called in h261_decode_frame(), not h261_decode_init(). Yet said commit factored this out of ff_mpv_common_init() and therefore there is no reason any more