Re: [FFmpeg-devel] swscale : add bitexact conv for grayf32 and gray16 to f32 conv

2018-09-17 Thread Martin Vignali
> also, have you tried adding a small constant to tmp ? > i would expect that this or a similar operation would allow moving > away from all "unstable" points without really changing the output in a > relevant way. > > Can't find an op, in mult mode, in order to not raise the assert But if i use ad

[FFmpeg-devel] [PATCH] avformat/dashenc: Format VP9 level as decimal instead of hexadecimal

2018-09-17 Thread Karthick J
From: Karthick Jeyapal Commit ID 63c69d51c7532fb6c2460076329b50ec51a0f290 fixed the bug in vpcc, get_vp9_level() function, causing this change. --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 9a333

Re: [FFmpeg-devel] [PATCH] avformat/dashenc: Format VP9 level as decimal instead of hexadecimal

2018-09-17 Thread Hendrik Leppkes
On Mon, Sep 17, 2018 at 9:28 AM Karthick J wrote: > > From: Karthick Jeyapal > > Commit ID 63c69d51c7532fb6c2460076329b50ec51a0f290 fixed the bug in vpcc, > get_vp9_level() function, causing this change. > --- > libavformat/dashenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > d

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the raw input is large enough to contain MVs or an intra frame

2018-09-17 Thread Paul B Mahol
On 9/17/18, Michael Niedermayer wrote: > On Sun, Sep 16, 2018 at 10:16:05AM +0200, Paul B Mahol wrote: >> On 9/16/18, Michael Niedermayer wrote: >> > Fixes: Timeout >> > Fixes: >> > 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704 >> > >> > Found-by: continuous

[FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Format VP9 bitdepth as decimal instead of Hexadecimal

2018-09-17 Thread Karthick J
From: Karthick Jeyapal For example bitdepth should be printed as 10 instead of 0A. Thanks to Hendrik Leppkes for pointing this out --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index f429ebc..1a201c3 1

[FFmpeg-devel] [PATCH v2 1/2] avformat/dashenc: Format VP9 level as decimal instead of hexadecimal

2018-09-17 Thread Karthick J
From: Karthick Jeyapal Commit ID 63c69d51c7532fb6c2460076329b50ec51a0f290 fixed the bug in vpcc, get_vp9_level() function, causing this change. --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 9a333

Re: [FFmpeg-devel] [PATCH] avformat/dashenc: Format VP9 level as decimal instead of hexadecimal

2018-09-17 Thread Jeyapal, Karthick
On 9/17/18 1:12 PM, Hendrik Leppkes wrote: > On Mon, Sep 17, 2018 at 9:28 AM Karthick J wrote: >> >> From: Karthick Jeyapal >> >> Commit ID 63c69d51c7532fb6c2460076329b50ec51a0f290 fixed the bug in vpcc, >> get_vp9_level() function, causing this change. >> --- >> libavformat/dashenc.c | 2 +- >

Re: [FFmpeg-devel] [PATCH] ffmpeg: block output == input for files

2018-09-17 Thread Gyan Doshi
On 07-09-2018 12:21 AM, Gyan Doshi wrote: On 05-09-2018 06:06 AM, Michael Niedermayer wrote: On Mon, Sep 03, 2018 at 10:48:45AM +0530, Gyan Doshi wrote: On 31-08-2018 10:26 AM, Gyan Doshi wrote: On 31-08-2018 09:57 AM, Gyan Doshi wrote: On 31-08-2018 04:28 AM, Marton Balint wrote: Is there

[FFmpeg-devel] [PATCH] avcodec/mips: [loongson] refine ff_vc1_inv_trans_8x8_mmi.

2018-09-17 Thread Shiyou Yin
Combined 1st and 2nd loop into one inline asm in function ff_vc1_inv_trans_8x8_mmi to reduce memory operation, and made some small optimization in ff_vc1_inv_trans_4x8_mmi. --- libavcodec/mips/vc1dsp_mmi.c | 227 ++- 1 file changed, 94 insertions(+), 133 d

Re: [FFmpeg-devel] [PATCH] libavdevice: allow cropping avfoundation screen capture

2018-09-17 Thread Alan.Birtles
2018-09-13 17:52 GMT+02:00, alan.birt...@sony.com mailto:alan.birt...@sony.com>>: > I've developed a patch to add an option to allow cropping of the > avfoundation screen capture. > Note that if the captured width is not a multiple of 16 then > https://urldefen

[FFmpeg-devel] [PATCH] lavc/mpeg2dec: fix MPEG2 VA-API interlace decoding issue.

2018-09-17 Thread Jun Zhao
From: Jun Zhao For interlaced frame, it has to call slice_end() for both fields. And VASliceParameterBufferMPEG2::slice_vertical_position is supposed to be the position in the picture but not field in this case. Signed-off-by: Dong, Jerry Signed-off-by: Jun Zhao --- libavcodec/mpeg12dec.c |

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the raw input is large enough to contain MVs or an intra frame

2018-09-17 Thread Carl Eugen Hoyos
2018-09-17 9:58 GMT+02:00, Paul B Mahol : > Also why this codec needs fuzzing? Do you believe that this codec is a less likely attack vector than any other codec? Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the raw input is large enough to contain MVs or an intra frame

2018-09-17 Thread Paul B Mahol
On 9/17/18, Carl Eugen Hoyos wrote: > 2018-09-17 9:58 GMT+02:00, Paul B Mahol : >> Also why this codec needs fuzzing? > > Do you believe that this codec is a less likely attack vector > than any other codec? It is not possible attack vector at al, becuase there are no security bugs in this codec

Re: [FFmpeg-devel] [PATCH] lavc/mpeg2dec: fix MPEG2 VA-API interlace decoding issue.

2018-09-17 Thread Hendrik Leppkes
On Mon, Sep 17, 2018 at 1:22 PM Jun Zhao wrote: > > From: Jun Zhao > > For interlaced frame, it has to call slice_end() for both fields. And > VASliceParameterBufferMPEG2::slice_vertical_position is supposed to be > the position in the picture but not field in this case. > How does this impact o

[FFmpeg-devel] [PATCH 1/2] lavu/frame: Add missing conversions from side data enum to name

2018-09-17 Thread Jun Zhao
Add missing conversions from side data enum to name. Signed-off-by: Jun Zhao --- libavutil/frame.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index 6c2c28f..4460325 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -83

[FFmpeg-devel] [PATCH 2/2] lavc/avpacket: Add missing conversions from side data enum to name.

2018-09-17 Thread Jun Zhao
Add missing conversions from side data enum to name. Signed-off-by: Jun Zhao --- libavcodec/avpacket.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 99a0c13..002fa0f 100644 --- a/libavcodec/avpacket.c +++ b/libav

[FFmpeg-devel] [PATCH]lavf/webvttenc: Always write hours in timestamps with two characters

2018-09-17 Thread Carl Eugen Hoyos
Hi! Attached patch fixes ticket #7442 for me. Please comment, Carl Eugen From cbec1355c59ff1cfcb5051c8c75c09258d1cc569 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 17 Sep 2018 18:20:05 +0200 Subject: [PATCH] lavf/webvttenc: Always write hours in the timestamp with two characters.

Re: [FFmpeg-devel] [PATCH]lavf/webvttenc: Always write hours in timestamps with two characters

2018-09-17 Thread Reto Kromer
Carl Eugen Hoyos wrote: >Attached patch fixes ticket #7442 for me. LGTM Best regards, Reto ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Format VP9 bitdepth as decimal instead of Hexadecimal

2018-09-17 Thread James Almer
On 9/17/2018 5:03 AM, Karthick J wrote: > From: Karthick Jeyapal > > For example bitdepth should be printed as 10 instead of 0A. Thanks to Hendrik > Leppkes for pointing this out > --- > libavformat/dashenc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavformat/

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the raw input is large enough to contain MVs or an intra frame

2018-09-17 Thread Michael Niedermayer
On Mon, Sep 17, 2018 at 09:58:18AM +0200, Paul B Mahol wrote: > On 9/17/18, Michael Niedermayer wrote: > > On Sun, Sep 16, 2018 at 10:16:05AM +0200, Paul B Mahol wrote: > >> On 9/16/18, Michael Niedermayer wrote: > >> > Fixes: Timeout > >> > Fixes: > >> > 10182/clusterfuzz-testcase-minimized-ffmp

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the raw input is large enough to contain MVs or an intra frame

2018-09-17 Thread Paul B Mahol
On 9/17/18, Michael Niedermayer wrote: > On Mon, Sep 17, 2018 at 09:58:18AM +0200, Paul B Mahol wrote: >> On 9/17/18, Michael Niedermayer wrote: >> > On Sun, Sep 16, 2018 at 10:16:05AM +0200, Paul B Mahol wrote: >> >> On 9/16/18, Michael Niedermayer wrote: >> >> > Fixes: Timeout >> >> > Fixes: >

[FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the decompressed data is large enough to contain MVs or an intra frame

2018-09-17 Thread Michael Niedermayer
Fixes: Timeout Fixes: 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/zmbv.c | 11 ++- 1 file chang

[FFmpeg-devel] [PATCH 1/2] avcodec/zmbv: Update decomp_len in raw frames

2018-09-17 Thread Michael Niedermayer
decomp_len is used in raw frames, so it should not be left at the value from whatever was decoded previously (which may be any other frame) Signed-off-by: Michael Niedermayer --- libavcodec/zmbv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c index 9e2

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the decompressed data is large enough to contain MVs or an intra frame

2018-09-17 Thread Paul B Mahol
On 9/17/18, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer >

Re: [FFmpeg-devel] Reduce static table size for VLC tables in h264_cavlc.c

2018-09-17 Thread Dale Curtis
On Sat, Sep 8, 2018 at 5:49 PM Michael Niedermayer wrote: > dont all modern OS assign physical memory only once something is stored > in these tables? > This seems to be correct. I was misreading the tooling which indicated these were taking up size. So this patch can be abandoned. Sorry for the

Re: [FFmpeg-devel] [PATCH] avformat/utils: Don't parse encrypted packets.

2018-09-17 Thread Jacob Trimble
On Wed, Sep 12, 2018 at 11:50 AM Michael Niedermayer wrote: > > On Tue, Sep 11, 2018 at 03:50:57PM -0700, Jacob Trimble wrote: > > [...] > > > > So how about, when we see an encrypted frame, we flush the parser > > before skipping the frame? Can we just flush the parser and then > > reuse it late

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/zmbv: Check that the decompressed data is large enough to contain MVs or an intra frame

2018-09-17 Thread Michael Niedermayer
On Mon, Sep 17, 2018 at 09:34:00PM +0200, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed

Re: [FFmpeg-devel] [PATCH 2/2] lavc/libdavs2: fix error type

2018-09-17 Thread Mark Thompson
On 12/09/18 06:53, hwren wrote: > Signed-off-by: hwren > --- > libavcodec/libdavs2.c | 6 -- > 1 file changed, 6 deletions(-) On 12/09/18 06:53, hwren wrote: > Signed-off-by: hwren > --- > libavcodec/libdavs2.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Both applied. Th

[FFmpeg-devel] [PATCH] avcodec/zmbv: Check that the decompressed data size is correct

2018-09-17 Thread Michael Niedermayer
This checks the value exactly for intra frames and checks it against a minimum for inter frames as they can be variable. Fixes: Timeout Fixes: 10182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ZMBV_fuzzer-6245951174344704 Found-by: continuous fuzzing process https://github.com/google/oss-

Re: [FFmpeg-devel] [PATCH] lavc/libxavs2: remove invalid parameters

2018-09-17 Thread Mark Thompson
On 12/09/18 08:54, hwren wrote: > Signed-off-by: hwren > --- > doc/encoders.texi | 3 --- > libavcodec/libxavs2.c | 4 > 2 files changed, 7 deletions(-) > > diff --git a/doc/encoders.texi b/doc/encoders.texi > index 4623f38..0696a7a 100644 > --- a/doc/encoders.texi > +++ b/doc/encoders.

[FFmpeg-devel] [PATCH]lavd/dshow: Interpret negative height as bottom-down frame

2018-09-17 Thread Carl Eugen Hoyos
Hi! Attached patch was tested by the reporter of ticket #7436. Please comment, Carl Eugen From 20f8ee0514a60bcc5a1dc2ddc72e92db66b8f815 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 18 Sep 2018 00:16:42 +0200 Subject: [PATCH] lavd/dshow: Interpret negative height as bottom-down fram

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaomdec: export chroma sample location

2018-09-17 Thread Mark Thompson
On 16/09/18 19:29, James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/libaomdec.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c > index 2530c9f76b..a21cace164 100644 > --- a/libavcodec/libaomdec.c > +++ b/libavcodec/l

Re: [FFmpeg-devel] [PATCH] libavfilter: Removes stored DNN models. Adds support for native backend model file format in tf backend. Removes scaling and conversion with libswscale and replaces input fo

2018-09-17 Thread Pedro Arthur
Pushed. 2018-09-16 16:21 GMT-03:00 Pedro Arthur : > > > 2018-09-16 15:20 GMT-03:00 Paul B Mahol : >> >> When this will be pushed? >> > Yes, I did not had time to push it friday. > I'll do it monday or you could push it if you don't mind. > > ___ ffmpeg-

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libaomenc: support setting chroma sample location

2018-09-17 Thread Mark Thompson
On 16/09/18 19:29, James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/libaomenc.c | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c > index 6a79d9b873..55d50ded28 100644 > --- a/libavcodec/libaomenc.c > ++

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libaomdec: export chroma sample location

2018-09-17 Thread James Almer
On 9/17/2018 7:52 PM, Mark Thompson wrote: > On 16/09/18 19:29, James Almer wrote: >> Signed-off-by: James Almer >> --- >> libavcodec/libaomdec.c | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c >> index 2530c9f76b..a21cace164 100644

[FFmpeg-devel] [PATCH v2 1/3] libaomenc: Add support for tiles

2018-09-17 Thread Mark Thompson
Adds an option to specify the number of tile rows and columns, then uses equal-sized tiles to fill the frame. --- libavcodec/libaomenc.c | 54 ++ 1 file changed, 54 insertions(+) diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c index 6a79d9b873.

[FFmpeg-devel] [PATCH v2 3/3] lavc: Add AV1 metadata bitstream filter

2018-09-17 Thread Mark Thompson
Can adjust colour and timing information. --- configure | 1 + libavcodec/Makefile| 1 + libavcodec/av1_metadata_bsf.c | 267 + libavcodec/bitstream_filters.c | 1 + 4 files changed, 270 insertions(+) create mode 100644 libav

Re: [FFmpeg-devel] swscale : add bitexact conv for grayf32 and gray16 to f32 conv

2018-09-17 Thread Michael Niedermayer
On Mon, Sep 17, 2018 at 09:04:06AM +0200, Martin Vignali wrote: > > also, have you tried adding a small constant to tmp ? > > i would expect that this or a similar operation would allow moving > > away from all "unstable" points without really changing the output in a > > relevant way. > > > > > Ca

Re: [FFmpeg-devel] [PATCH v2 1/3] libaomenc: Add support for tiles

2018-09-17 Thread James Almer
On 9/17/2018 8:47 PM, Mark Thompson wrote: > Adds an option to specify the number of tile rows and columns, then uses > equal-sized tiles to fill the frame. > --- > libavcodec/libaomenc.c | 54 ++ > 1 file changed, 54 insertions(+) > > diff --git a/libavcod

Re: [FFmpeg-devel] [PATCH V7 0/3] enable multi-slices in vaapi_h264/265 encoder

2018-09-17 Thread myp...@gmail.com
Ping? On Wed, Sep 12, 2018 at 8:49 AM myp...@gmail.com wrote: > > > On Wed, Aug 29, 2018 at 6:47 PM Jun Zhao wrote: > > > > V7: - Fix h264 first_mb_in_slice setting issue. (root cause by Mark) > > - Refine the error handle > > > > V6: - Use rectangular slices and refine the code. > > > > V5:

Re: [FFmpeg-devel] [PATCH v2 2/3] lavc: Add coded bitstream read/write support for AV1

2018-09-17 Thread James Almer
On 9/17/2018 8:47 PM, Mark Thompson wrote: > --- > On 10/09/18 00:40, James Almer wrote: >> On 9/9/2018 7:08 PM, Mark Thompson wrote: >>> +static int cbs_av1_split_fragment(CodedBitstreamContext *ctx, >>> + CodedBitstreamFragment *frag, >>> +

[FFmpeg-devel] [PATCH] avcodec: [loongson] optimize get_cabac_inline.

2018-09-17 Thread Shiyou Yin
This optimization improved h264 decoding performance about 4%(from 74fps to 77fps, tested on loongson 3A3000). --- libavcodec/cabac_functions.h | 3 ++ libavcodec/mips/cabac.h | 119 +++ 2 files changed, 122 insertions(+) create mode 100644 libavcod