[FFmpeg-devel] [PATCH] avcodec/cuviddec: Properly check capability for chroma format

2019-10-04 Thread Holy Wu
From: Holy Wu --- libavcodec/cuviddec.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index acee78cf2c..c14e381bb5 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -722,6 +722,7 @@

[FFmpeg-devel] [PATCH 1/1] [PATCH] avformat/hls: fix missing segment offset reset on last segment when http_multiple is enabled.

2019-10-04 Thread vectronic
Signed-off-by: vectronic --- libavformat/hls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index 336608fa2d..d7f4d5b442 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -1449,6 +1449,7 @@ reload: if (c->http_multiple == 1 &&

[FFmpeg-devel] [PATCH 0/1] avformat/hls: fix missing data from last segment of HLS+fMP4 when using http_multiple

2019-10-04 Thread vectronic
When using http_multiple with HLS and fragmented MP4 media, the last segment is attempted to be read without resetting the current segment offset to 0. the previous segments last offset was thus used which meant an invalid portion of the last segment was being read. vectronic (1):

[FFmpeg-devel] [PATCH 0/2] avformat/hls: fix demux of HLS+fMP4 when using persistent HTTP connections

2019-10-04 Thread vectronic
The offset of a playlist segment into a fragmented MP4 file was being ignored when using support for persistent HTTP connections. To allow passing of the segment offsets a new ff_http_do_new_request2() method is introduced. vectronic (2): avformat/http: add ff_http_do_new_request2() which

[FFmpeg-devel] [PATCH 1/2] [PATCH 1/2] avformat/http: add ff_http_do_new_request2() which supports options to be applied to HTTPContext after initialisation with the new uri

2019-10-04 Thread vectronic
Signed-off-by: vectronic --- libavformat/http.c | 8 +++- libavformat/http.h | 13 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 71dd6c2b1f..85cbd06092 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@

[FFmpeg-devel] [PATCH 2/2] [PATCH 2/2] avformat/hls: pass http offset options to http request made with persistent connections to prevent incorrect reset of offset when demuxing HLS+FMP4

2019-10-04 Thread vectronic
Signed-off-by: vectronic --- libavformat/hls.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 0611ddc6bb..336608fa2d 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -594,7 +594,7 @@ static int

Re: [FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread Skakov Pavel
Can AVRational be used even through the values are essentially unsigned? LibTIFF really likes to encode 0..1 values with denominator 0x. Is it feasible for this to use av_reduce() with INT_MAX as max argument? It takes int64_t as input values, so UINT_MAX should be fine. It seems to

[FFmpeg-devel] [PATCH 1/4] avcodec/agm: Check for reference frame earlier

2019-10-04 Thread Michael Niedermayer
Fixes: Timeout (14sec - 120ms) Fixes: 17824/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5639825457152000 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/agm.c | 11

Re: [FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread James Almer
On 10/4/2019 3:24 AM, Skakov Pavel wrote: >> You should use AVRationals instead. It's ideal seeing the way these >> values are coded in the bitstream. >> >> See libavutil/rational.h > > Can AVRational be used even through the values are essentially unsigned? > LibTIFF really likes to encode 0..1

Re: [FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread Skakov Pavel
Can AVRational be used even through the values are essentially unsigned? LibTIFF really likes to encode 0..1 values with denominator 0x. floats do not have enough precission to store unsigned 32/32bit fractions just consider a float has 32bit (and a good part is really small and large

[FFmpeg-devel] [PATCH 3/4] avformat/subtitles: Check nb_subs in ff_subtitles_queue_finalize()

2019-10-04 Thread Michael Niedermayer
Fixes: null pointer dereference Fixes: 17828/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5645915116797952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/subtitles.c | 7 --- 1

Re: [FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread Michael Niedermayer
On Fri, Oct 04, 2019 at 09:24:05AM +0300, Skakov Pavel wrote: > >You should use AVRationals instead. It's ideal seeing the way these > >values are coded in the bitstream. > > > >See libavutil/rational.h > > Can AVRational be used even through the values are essentially unsigned? > LibTIFF

[FFmpeg-devel] [PATCH v2] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread Skakov Pavel
Add support for properly handling PC/TV ranges and Rec601/Rec709 color spaces. Can't this be implemented without using floats? AVRationals are not a good idea as those values are unsigned and often use full unsigned range. Here is slightly different approach: range check for fractional

[FFmpeg-devel] [PATCH 2/4] avformat/pjsdec: Check duration for overflow

2019-10-04 Thread Michael Niedermayer
Fixes: signed integer overflow: -3 - 9223372036854775807 cannot be represented in type 'long' Fixes: 17828/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5645915116797952 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by:

[FFmpeg-devel] [PATCH 4/4] avcodec/alsdec: Check that input space for header exists in read_diff_float_data()

2019-10-04 Thread Michael Niedermayer
Fixes: Timeout (21sec -> 8sec) Fixes: 17832/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5737092172218368 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/alsdec.c | 3 +++ 1

Re: [FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-10-04 Thread Pedro Arthur
Hi, Em sex, 4 de out de 2019 às 09:59, Guo, Yejun escreveu: > > > > -Original Message- > > From: Guo, Yejun > > Sent: Tuesday, September 24, 2019 1:34 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Guo, Yejun > > Subject: [PATCH V2 2/2] avfilter/dnn: unify the layer execution function > in

Re: [FFmpeg-devel] [PATCH V1 1/3] avcodec/decode: fix identation

2019-10-04 Thread Gyan
On 04-10-2019 07:06 PM, Jun Zhao wrote: From: Jun Zhao fix identation. indentation Signed-off-by: Jun Zhao --- libavcodec/decode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 0818475..a7b37c6 100644 ---

[FFmpeg-devel] [PATCH V1 3/3] doc/codecs: Update documentation for flags/flags2

2019-10-04 Thread Jun Zhao
From: Jun Zhao Update documentation for flags/flags2 Signed-off-by: Jun Zhao --- doc/codecs.texi | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/codecs.texi b/doc/codecs.texi index 0d0de94..15e55cc 100644 --- a/doc/codecs.texi +++ b/doc/codecs.texi @@

[FFmpeg-devel] [PATCH V1 1/3] avcodec/decode: fix identation

2019-10-04 Thread Jun Zhao
From: Jun Zhao fix identation. Signed-off-by: Jun Zhao --- libavcodec/decode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 0818475..a7b37c6 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -785,7 +785,7

[FFmpeg-devel] [PATCH V1 2/3] lavc/options_table: Correct the flags for AVCodecContext.flags2

2019-10-04 Thread Jun Zhao
From: Jun Zhao Correct the flags for AVCodecContext.flags2. Signed-off-by: Jun Zhao --- libavcodec/options_table.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index b56e653..4b9f3ff 100644 ---

Re: [FFmpeg-devel] [PATCH] FATE/dnn: fix stack buffer overflow

2019-10-04 Thread Pedro Arthur
Em sex, 4 de out de 2019 às 09:11, Guo, Yejun escreveu: > > > > -Original Message- > > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > > quinkbl...@foxmail.com > > Sent: Tuesday, October 01, 2019 2:37 PM > > To: ffmpeg-devel@ffmpeg.org > > Cc: Zhao Zhili > >

Re: [FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-10-04 Thread Guo, Yejun
> -Original Message- > From: Guo, Yejun > Sent: Tuesday, September 24, 2019 1:34 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in > native > mode > > with this change, the code will be simpler when more

Re: [FFmpeg-devel] [PATCH] FATE/dnn: fix stack buffer overflow

2019-10-04 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > quinkbl...@foxmail.com > Sent: Tuesday, October 01, 2019 2:37 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Zhao Zhili > Subject: [FFmpeg-devel] [PATCH] FATE/dnn: fix stack buffer overflow > >

Re: [FFmpeg-devel] [PATCH] Fix gas-preprocessor to translate.rdatasections for armasm and armasm64

2019-10-04 Thread Lukas Fellechner
> > > > Compiling FFmpeg with gas-preprocessor.pl and armasm or armasm64 fails > > > > since FFmpeg 4.2. > > > > > > > > New .rdata sections have been added in ARM NEON assembly code (e.g. > > > > libavutil/aarch64/asm.S). > > > > This fix allows gas-preprocessor to translate those sections to

Re: [FFmpeg-devel] [PATCH] avformat/mpeg: better fix for MLP versus PCM-DVD misdetection

2019-10-04 Thread Paul B Mahol
will apply On 10/1/19, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavformat/mpeg.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c > index 3205f209e6..6f132aae05 100644 > --- a/libavformat/mpeg.c > +++

[FFmpeg-devel] [PATCH] avfilter: add anlms filter

2019-10-04 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 23 +++ libavfilter/Makefile | 1 + libavfilter/af_anlms.c | 308 +++ libavfilter/allfilters.c | 1 + 4 files changed, 333 insertions(+) create mode 100644 libavfilter/af_anlms.c diff

Re: [FFmpeg-devel] [PATCH] avcodec/tiff: add limited support for ReferenceBlackWhite and YCbCrCoefficients tags

2019-10-04 Thread Skakov Pavel
You should use AVRationals instead. It's ideal seeing the way these values are coded in the bitstream. See libavutil/rational.h Can AVRational be used even through the values are essentially unsigned? LibTIFF really likes to encode 0..1 values with denominator 0x.