[FFmpeg-devel] [PATCH] avcodec/exr: preserve half-float NaN bits and add fate test

2020-11-22 Thread mindmark
From: Mark Reid Hi, This patch handles NaNs more like the offical implentation handles them, preserving the original bits. https://github.com/AcademySoftwareFoundation/openexr/blob/RB-2.5/IlmBase/Half/toFloat.cpp#L111 It also adds a fate test that is a 256x256 exr containing all possible 16bit

Re: [FFmpeg-devel] Add RTSP range header

2020-11-22 Thread Yakov Okshtein
Whoops, looks like Gmail sent the .patch file attachment as application/octet-stream ... I must say, the ffmpeg binary is much more lenient in its input than the ffmpeg-devel mailing list :) Let me try again with Thunderbird, and a .txt file. Thanks all, Yakov On 11/22/20 11:21 AM, Yakov Oks

[FFmpeg-devel] [PATCH 6/6] tools/target_dec_fuzzer: Adjust threshold for interplayacm

2020-11-22 Thread Michael Niedermayer
Fixes: Timeout (long -> 1sec) Fixes: 27439/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INTERPLAY_ACM_fuzzer-5145715814432768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.

[FFmpeg-devel] [PATCH 5/6] avformat/4xm: Make audio_frame_count 64bit

2020-11-22 Thread Michael Niedermayer
Fixes: signed integer overflow: 2099257366 * 2 cannot be represented in type 'int' Fixes: 27486/clusterfuzz-testcase-minimized-ffmpeg_dem_FOURXM_fuzzer-5112179134824448 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nie

[FFmpeg-devel] [PATCH 3/6] avformat/vividas: Check sample_rate

2020-11-22 Thread Michael Niedermayer
Fixes: Assertion c > 0 failed at libavutil/mathematics.c Fixes: 27001/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5726041328582656 Fixes: 27453/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5716060384526336 Found-by: continuous fuzzing process https://github.com/google/o

[FFmpeg-devel] [PATCH 1/6] avcodec/vp9dsp_template: Fix integer overflows in itxfm_wrapper

2020-11-22 Thread Michael Niedermayer
Fixes: signed integer overflow: 2147483641 + 32 cannot be represented in type 'int' Fixes: 27452/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP9_fuzzer-5078752576667648 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Micha

[FFmpeg-devel] [PATCH 4/6] avformat/mov: Use av_mul_q() to avoid integer overflows

2020-11-22 Thread Michael Niedermayer
Fixes: signed integer overflow: 538976288 * 538976288 cannot be represented in type 'int' Fixes: 27473/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5758978289827840 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael

[FFmpeg-devel] [PATCH 2/6] avformat/vividas: Make len signed

2020-11-22 Thread Michael Niedermayer
Fixes: out of array access Fixes: 27424/clusterfuzz-testcase-minimized-ffmpeg_dem_VIVIDAS_fuzzer-5682070692823040 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/vividas.c | 4 ++-- 1 file ch

Re: [FFmpeg-devel] [PATCH v2 2/4] avdevice/decklink: add AV_OPT_FLAG_DEPRECATED flag for list_devices

2020-11-22 Thread Marton Balint
On Sun, 22 Nov 2020, lance.lmw...@gmail.com wrote: From: Limin Wang Signed-off-by: Limin Wang --- libavdevice/decklink_dec_c.c | 2 +- libavdevice/decklink_enc_c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavdevice/decklink_dec_c.c b/libavdevice/decklink_dec_c.

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil: introduce AVFilmGrainParams side data

2020-11-22 Thread James Almer
On 11/12/2020 4:28 PM, Lynne wrote: Nov 12, 2020, 19:46 by jamr...@gmail.com: On 11/12/2020 2:42 PM, Lynne wrote: This patch introduces a new frame side data type AVFilmGrainParams for use with video codecs which are able to use it. It is generalized rather than being AV1 specific as AV2 is

Re: [FFmpeg-devel] [PATCH 8/8] avcodec/exr: skip bottom clearing loop when its outside the image

2020-11-22 Thread Michael Niedermayer
On Sun, Oct 25, 2020 at 12:23:12AM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 1633771809 * 32960 cannot be represented in > type 'int' > Fixes: > 26532/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5613925708857344 > > Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH 6/8] avformat/avs: Use 64bit for the avio_tell() output

2020-11-22 Thread Michael Niedermayer
On Sun, Oct 25, 2020 at 12:23:10AM +0200, Michael Niedermayer wrote: > Fixes: signed integer overflow: 9223372036854775807 - -1 cannot be > represented in type 'long' > Fixes: > 26549/clusterfuzz-testcase-minimized-ffmpeg_dem_AVS_fuzzer-4844306424397824 > > Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH 7/8] avcodec/exr: Check ymin vs. h

2020-11-22 Thread Michael Niedermayer
On Sun, Oct 25, 2020 at 12:23:11AM +0200, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 26532/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5613925708857344 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmp

Re: [FFmpeg-devel] [PATCH 3/8] avformat/moflex: Check pkt_size

2020-11-22 Thread Michael Niedermayer
On Sun, Oct 25, 2020 at 12:23:07AM +0200, Michael Niedermayer wrote: > Fixes: Timeout (>20sec -> 1ms) > Fixes: > 26527/clusterfuzz-testcase-minimized-ffmpeg_dem_MOFLEX_fuzzer-6308307310215168 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpe

[FFmpeg-devel] Add RTSP range header

2020-11-22 Thread Yakov Okshtein
Hi all, While working to get historical video off a DVR, I found the lack of a customizable Range: header for RTSP video frustrating (as, apparently, have others on StackOverflow and the Trac wiki, #6659). One user mentionedhaving made a custom patch, but didn't post it; so, I decided to make one.

[FFmpeg-devel] [PATCH 2/2] avcodec/rscc: Check inflated_buf size whan it is used

2020-11-22 Thread Michael Niedermayer
Fixes: out of array access Fixes: 27434/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RSCC_fuzzer-5196757675540480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg --- libavcodec/rscc.c | 4 1 file changed, 4 insertions(+) diff --git

[FFmpeg-devel] [PATCH 1/2] avformat/utils: Change compute_chapters_end() from O(n²) to O(n log n)

2020-11-22 Thread Michael Niedermayer
Fixes: Timeout (49sec -> 9sec) Fixes: 27427/clusterfuzz-testcase-minimized-ffmpeg_dem_FFMETADATA_fuzzer-5140589838073856 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 42 +

[FFmpeg-devel] [PATCH v2 2/4] avdevice/decklink: add AV_OPT_FLAG_DEPRECATED flag for list_devices

2020-11-22 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavdevice/decklink_dec_c.c | 2 +- libavdevice/decklink_enc_c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavdevice/decklink_dec_c.c b/libavdevice/decklink_dec_c.c index 53a4774..60b7186 100644 --- a/libavdevice/dec

Re: [FFmpeg-devel] [PATCH 2/4] avdevice/decklink: add AV_OPT_FLAG_DEPRECATED flag for list_devices

2020-11-22 Thread lance . lmwang
On Sat, Nov 21, 2020 at 12:21:10PM +0100, Marton Balint wrote: > > > On Sat, 21 Nov 2020, lance.lmw...@gmail.com wrote: > > > From: Limin Wang > > > > and claim the option deprecated in the description. > > No, the description should stay as is. Adding the flag is enough, the > deprecation wi

Re: [FFmpeg-devel] [PATCH] avformat/movenc: allow Apple Lossless inside mp4

2020-11-22 Thread Jan Ekström
On Sat, Nov 21, 2020 at 9:08 PM Jan Ekström wrote: > > On Fri, Nov 20, 2020 at 10:53 PM Jan Ekström wrote: > > > > On Fri, Nov 20, 2020 at 7:02 PM Leo Izen wrote: > > > > > > MP4 already supports Apple Lossless, and it can be put inside by using > > > muxer=ipod, but it's not tagged as supported