Re: [FFmpeg-devel] [PATCH] lavc/hevc_cabac: fix cbf_cb and cbf_cr for transform depth 4

2019-12-11 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel On Behalf Of > Carl Eugen Hoyos > Sent: Wednesday, December 11, 2019 18:19 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] lavc/hevc_cabac: fix cbf_cb and cbf_cr > for transform depth 4 > >

Re: [FFmpeg-devel] [PATCH v4] avfilter/buffersrc: deprecate sws_param option

2019-12-11 Thread myp...@gmail.com
On Wed, Dec 11, 2019 at 11:33 PM Zhao Zhili wrote: > > Ping for review, thanks! > > > On Dec 4, 2019, at 6:57 PM, quinkbl...@foxmail.com wrote: > > > > From: Zhao Zhili > > > > --- > > patch v4: update doc > > > > doc/filters.texi| 8 > > libavfilter/buffersrc.c | 14

Re: [FFmpeg-devel] 回复: [PATCH 1/1] add without_captureblt option for libavdevice/gdigrab.c, when useing the bitblt function with CAPTUREBLT it caused the mouse cursor flicker. most time we dont need t

2019-12-11 Thread fgodt
On 2019/12/11 下午10:19, Andriy Gelman wrote: On Wed, 11. Dec 09:01, _ FgoDt wrote: did someone review the patch? 发件人: _ FgoDt 发送时间: 2019年11月15日 15:03 收件人: ffmpeg-devel@ffmpeg.org 抄送: _ FgoDt 主题: [PATCH 1/1] add without_captureblt option for libavdevice/gdigra

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4

2019-12-11 Thread Tsuchiya, Yuki (SHES)
Hi James, > I see now, this is during demuxing. I was thinking about muxing. > I can reproduce what you mean with TrueHD which has sync frames every > 128 or so frames. Despite the mp4 and matroska files having the sync > frames correctly marked, lavf tags every frame as key. > > A general approac

[FFmpeg-devel] [PATCH V4] avfilter: Add tonemap vaapi filter for H2S

2019-12-11 Thread Ruiling Song
From: Xinpeng Sun It performs HDR(High Dynamic Range) to SDR(Standard Dynamic Range) conversion with tone-mapping. It only supports HDR10 as input temporarily. An example command to use this filter with vaapi codecs: FFMPEG -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread Andreas Rheinhardt
On Wed, Dec 11, 2019 at 11:58 PM Michael Niedermayer wrote: > On Wed, Dec 11, 2019 at 10:50:54PM +0100, Andreas Rheinhardt wrote: > > On Wed, Dec 11, 2019 at 10:38 PM James Almer wrote: > > > > > On 12/11/2019 6:03 PM, Michael Niedermayer wrote: > > > > Its unclear if shortening these NAL units

[FFmpeg-devel] [PATCH] fate/cbs: use the rawvideo muxer for AV1 tests

2019-12-11 Thread James Almer
The IVF muxer autoinserts the av1_metadata filter unconditionally, which is not desirable for these tests. Signed-off-by: James Almer --- tests/fate/cbs.mak | 6 +++--- tests/ref/fate/cbs-av1-av1-1-b10-23-film_grain-50 | 2 +- tests/ref/fate/cbs-av1-av1-1-b8-02-a

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

2019-12-11 Thread James Almer
On 12/11/2019 9:33 PM, Michael Niedermayer wrote: > On Thu, Dec 12, 2019 at 12:15:14AM +0100, Michael Niedermayer wrote: >> On Wed, Dec 11, 2019 at 07:00:06PM -0300, James Almer wrote: >>> Taking into account the code >>> >>> fb(2, ar_coeff_lag); >>> num_pos_luma = 2 * current->ar_coeff_lag * (curr

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

2019-12-11 Thread Michael Niedermayer
On Thu, Dec 12, 2019 at 12:15:14AM +0100, Michael Niedermayer wrote: > On Wed, Dec 11, 2019 at 07:00:06PM -0300, James Almer wrote: > > Taking into account the code > > > > fb(2, ar_coeff_lag); > > num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1); > > if (current->num_y_point

Re: [FFmpeg-devel] [PATCH 4/4] fate/filter-video: add two tests for dnn_processing with format rgb24 and grayf32

2019-12-11 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Guo, Yejun > Sent: Thursday, November 28, 2019 4:44 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH 4/4] fate/filter-video: add two tests for > dnn_p

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread Andreas Rheinhardt
On Wed, Dec 11, 2019 at 10:50 PM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > On Wed, Dec 11, 2019 at 10:38 PM James Almer wrote: > >> On 12/11/2019 6:03 PM, Michael Niedermayer wrote: >> > Its unclear if shortening these NAL units would have no effect on them >> > >> > Fixes: asse

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

2019-12-11 Thread Michael Niedermayer
On Wed, Dec 11, 2019 at 07:00:06PM -0300, James Almer wrote: > Taking into account the code > > fb(2, ar_coeff_lag); > num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1); > if (current->num_y_points) > num_pos_chroma = num_pos_luma + 1; > else > num_pos_chroma = num_pos

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread Michael Niedermayer
On Wed, Dec 11, 2019 at 10:50:54PM +0100, Andreas Rheinhardt wrote: > On Wed, Dec 11, 2019 at 10:38 PM James Almer wrote: > > > On 12/11/2019 6:03 PM, Michael Niedermayer wrote: > > > Its unclear if shortening these NAL units would have no effect on them > > > > > > Fixes: assertion failure > > >

Re: [FFmpeg-devel] [PATCH] avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

2019-12-11 Thread Ronald S. Bultje
Hi, On Wed, Dec 11, 2019 at 5:00 PM James Almer wrote: > Taking into account the code > > fb(2, ar_coeff_lag); > num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1); > if (current->num_y_points) > num_pos_chroma = num_pos_luma + 1; > else > num_pos_chroma = num_pos_lum

[FFmpeg-devel] [PATCH] avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

2019-12-11 Thread James Almer
Taking into account the code fb(2, ar_coeff_lag); num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1); if (current->num_y_points) num_pos_chroma = num_pos_luma + 1; else num_pos_chroma = num_pos_luma; Max value for ar_coeff_lag is 3 (two bits), for num_pos_luma 24, and

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread Andreas Rheinhardt
On Wed, Dec 11, 2019 at 10:38 PM James Almer wrote: > On 12/11/2019 6:03 PM, Michael Niedermayer wrote: > > Its unclear if shortening these NAL units would have no effect on them > > > > Fixes: assertion failure > > Fixes: > 19286/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_REDUNDANT_PPS_fuzze

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/cbs_av1_syntax_template: Check num_y_points

2019-12-11 Thread James Almer
On 12/11/2019 6:03 PM, Michael Niedermayer wrote: > "It is a requirement of bitstream conformance that num_y_points is less than > or equal to 14." > > Fixes: index 24 out of bounds for type 'uint8_t [24]' > Fixes: > 19282/clusterfuzz-testcase-minimized-ffmpeg_BSF_AV1_FRAME_MERGE_fuzzer-57474248

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread James Almer
On 12/11/2019 6:03 PM, Michael Niedermayer wrote: > Its unclear if shortening these NAL units would have no effect on them > > Fixes: assertion failure > Fixes: > 19286/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_REDUNDANT_PPS_fuzzer-5707990724509696 > > Found-by: continuous fuzzing process

[FFmpeg-devel] [PATCH 1/3] avcodec/cbs_av1_syntax_template: Check num_y_points

2019-12-11 Thread Michael Niedermayer
"It is a requirement of bitstream conformance that num_y_points is less than or equal to 14." Fixes: index 24 out of bounds for type 'uint8_t [24]' Fixes: 19282/clusterfuzz-testcase-minimized-ffmpeg_BSF_AV1_FRAME_MERGE_fuzzer-5747424845103104 Found-by: continuous fuzzing process https://github

[FFmpeg-devel] [PATCH 2/3] avcodec/cbs_h2645: Do not shorten reserved and unspecified NAL units in H264

2019-12-11 Thread Michael Niedermayer
Its unclear if shortening these NAL units would have no effect on them Fixes: assertion failure Fixes: 19286/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_REDUNDANT_PPS_fuzzer-5707990724509696 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg S

[FFmpeg-devel] [PATCH 3/3] tools/target_dec_fuzzer: Adjust threshold for RASC

2019-12-11 Thread Michael Niedermayer
Fixes: Timeout(35sec -> 4sec) Fixes: 19289/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RASC_fuzzer-5676526398078976 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 1 +

Re: [FFmpeg-devel] [PATCH v2] avcodec/cbs_av1: rename enable_intraintra_compound flag

2019-12-11 Thread James Almer
On 12/10/2019 10:54 PM, Fei Wang wrote: > rename enable_intraintra_compound to enable_interintra_compound, > which keep same as AV1 sepc(v1.0.0-errata1). > > Signed-off-by: Fei Wang > --- > libavcodec/cbs_av1.h | 2 +- > libavcodec/cbs_av1_syntax_template.c | 4 ++-- > libavforma

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4

2019-12-11 Thread James Almer
On 12/11/2019 7:15 AM, Tsuchiya, Yuki (SHES) wrote: > Hello James, > > On 2019/12/10 22:30, "James Almer" wrote: > > >> diff --git a/libavformat/utils.c b/libavformat/utils.c > >> index 8196442dd1..70f9e23d8c 100644 > >> --- a/libavformat/utils.c > >> +++ b/libavformat/utils.c >

Re: [FFmpeg-devel] [PATCH] avformat/tls_openssl: don't use libcrypto locking functions with newer OpenSLL versions

2019-12-11 Thread James Almer
On 12/11/2019 1:37 PM, Gyan wrote: > A few typos: > > (in commit title) > OpenSLL --> OpenSSL > > On 11-12-2019 09:45 pm, James Almer wrote: >> They have been removed altogheter without a compat implementatino, and >> are > altogheter --> altogether > > implementatino --> implementation Amended

Re: [FFmpeg-devel] [PATCH] avformat/tls_openssl: don't use libcrypto locking functions with newer OpenSLL versions

2019-12-11 Thread Gyan
A few typos: (in commit title) OpenSLL --> OpenSSL On 11-12-2019 09:45 pm, James Almer wrote: They have been removed altogheter without a compat implementatino, and are altogheter --> altogether implementatino --> implementation Gyan ___ ffmpeg-dev

[FFmpeg-devel] [PATCH] avformat/tls_openssl: don't use libcrypto locking functions with newer OpenSLL versions

2019-12-11 Thread James Almer
They have been removed altogheter without a compat implementatino, and are either no-ops or return NULL. This fixes compiler warnings about checks always evaluating to false, and leaks of allocated mutexes. Signed-off-by: James Almer --- libavformat/tls_openssl.c | 6 +++--- 1 file changed, 3 in

Re: [FFmpeg-devel] [PATCH 1/3] avformat/apc: Remove unnecessary resetting of flags

2019-12-11 Thread Michael Niedermayer
On Tue, Dec 10, 2019 at 02:41:43AM +0100, Andreas Rheinhardt wrote: > The packet a demuxer receives is freshly initialized, hence it is > unnecessary to reset any flags on them (as none are set), yet apc did > this. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/apc.c | 1 - > 1 file

Re: [FFmpeg-devel] [PATCH v4] avfilter/buffersrc: deprecate sws_param option

2019-12-11 Thread Zhao Zhili
Ping for review, thanks! > On Dec 4, 2019, at 6:57 PM, quinkbl...@foxmail.com wrote: > > From: Zhao Zhili > > --- > patch v4: update doc > > doc/filters.texi| 8 > libavfilter/buffersrc.c | 14 -- > libavfilter/version.h | 5 - > 3 files changed, 20 insertions

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/cbs_mpeg2: Change assertion from bytes to bits

2019-12-11 Thread Michael Niedermayer
On Mon, Dec 09, 2019 at 12:52:45PM +0100, Andreas Rheinhardt wrote: > On Mon, Dec 9, 2019 at 2:54 AM James Almer wrote: > > > On 12/8/2019 6:31 PM, Michael Niedermayer wrote: > > > This allows writing empty slices > > > > Are empty slices valid in mpeg2 to begin with? Or is that the result of > >

[FFmpeg-devel] [PATCH v1 1/2] avcodec/cbs_h2645: add helper functions to insert and delete SEI PREFIX messages

2019-12-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/cbs_h2645.c | 93 ++ libavcodec/cbs_h265.h | 25 ++ 2 files changed, 118 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 5f71d80..2fc957d 1006

[FFmpeg-devel] [PATCH v1 2/2] avcodec/h265_metadata_bsf: add option to insert a string as SEI unregistered user data

2019-12-11 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/bitstream_filters.texi | 8 ++ libavcodec/h265_metadata_bsf.c | 65 +- 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index

Re: [FFmpeg-devel] [PATCH 1/7] avcodec/cbs: Check for overflow when reading

2019-12-11 Thread Andreas Rheinhardt
On Tue, Dec 10, 2019 at 11:12 PM Andriy Gelman wrote: > On Mon, 09. Dec 23:25, Andreas Rheinhardt wrote: > > While CBS itself uses size_t for sizes, it relies on other APIs that use > > int for their sizes; in particular, AVBuffer uses int for their size > > parameters and so does GetBitContext w

Re: [FFmpeg-devel] [PATCH] avcodec/v210dec: move the stride read after its fully initialized

2019-12-11 Thread Limin Wang
On Sun, Dec 01, 2019 at 11:26:47PM +0100, Michael Niedermayer wrote: > Fixes: out of array read > Fixes: > 19129/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5068171023482880 > Maybe fixes: > 19130/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5637264407527424 >

Re: [FFmpeg-devel] [PATCHv2 2/2] checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparing

2019-12-11 Thread Michael Niedermayer
On Wed, Dec 11, 2019 at 11:21:14AM +0200, Martin Storsjö wrote: > As the values generated by av_bmg_get can be arbitrarily large > (only the stddev is specified), we can't use a fixed tolerance. > > This matches what was done for test_vector_dmul_scalar in > 38f966bdb. > > This fixes the floa

Re: [FFmpeg-devel] [PATCH 2/2] network: Define ENOTCONN as WSAENOTCONN if not defined

2019-12-11 Thread Carl Eugen Hoyos
Am Mi., 11. Dez. 2019 um 13:21 Uhr schrieb Martin Storsjö : > > This fixes compilation with old mingw.org toolchains, which has got > much fewer errno.h entries. > --- > There's still a couple fate instances that use mingw.org headers/libs, > and this is the only detail that currently stops them fr

Re: [FFmpeg-devel] [PATCH] avformat/apngdec: Return error for incomplete header

2019-12-11 Thread Carl Eugen Hoyos
Am Mi., 11. Dez. 2019 um 12:14 Uhr schrieb Andreas Rheinhardt : > > When an incomplete header is encountered, apng_read_header would under > certain circumstances only return the return value of the last > successfull call. So override this by returning AVERROR(EIO) manually. What does this fix /

Re: [FFmpeg-devel] [PATCH] lavf/zf_zscale: remove unused code

2019-12-11 Thread Carl Eugen Hoyos
Am Mi., 11. Dez. 2019 um 14:30 Uhr schrieb Moritz Barsnick : > > On Wed, Dec 11, 2019 at 16:52:17 +0800, Linjie Fu wrote: > > Subject: lavf/zf_zscale: remove unused code > ^ vf_ While there, change "lavf" to lavfi or avfilter Carl Eugen

Re: [FFmpeg-devel] [PATCHv2] fate: Use a oneoff test for the tremolo filter

2019-12-11 Thread Martin Storsjö
On Wed, 11 Dec 2019, James Almer wrote: On 12/11/2019 4:43 AM, Martin Storsjö wrote: The tremolo filter uses floating point internally, and uses multiplication factors derived from sin(fmod()), neither of which is bitexact for use with framecrc. This fixes running this test with mingw/x86_32 b

Re: [FFmpeg-devel] 回复: [PATCH 1/1] add without_captureblt option for libavdevice/gdigrab.c, when useing the bitblt function with CAPTUREBLT it caused the mouse cursor flicker. most time we dont need t

2019-12-11 Thread Andriy Gelman
On Wed, 11. Dec 09:01, _ FgoDt wrote: > did someone review the patch? > > > 发件人: _ FgoDt > 发送时间: 2019年11月15日 15:03 > 收件人: ffmpeg-devel@ffmpeg.org > 抄送: _ FgoDt > 主题: [PATCH 1/1] add without_captureblt option for libavdevice/gdigrab.c, when > useing the bitblt f

Re: [FFmpeg-devel] [PATCHv2] fate: Use a oneoff test for the tremolo filter

2019-12-11 Thread James Almer
On 12/11/2019 4:43 AM, Martin Storsjö wrote: > The tremolo filter uses floating point internally, and uses > multiplication factors derived from sin(fmod()), neither of > which is bitexact for use with framecrc. > > This fixes running this test with mingw/x86_32 binaries when run > in wine on linu

Re: [FFmpeg-devel] [PATCH] lavf/zf_zscale: remove unused code

2019-12-11 Thread Moritz Barsnick
On Wed, Dec 11, 2019 at 16:52:17 +0800, Linjie Fu wrote: > Subject: lavf/zf_zscale: remove unused code ^ vf_ ;-) Moritz ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscrib

[FFmpeg-devel] [PATCH 2/2] network: Define ENOTCONN as WSAENOTCONN if not defined

2019-12-11 Thread Martin Storsjö
This fixes compilation with old mingw.org toolchains, which has got much fewer errno.h entries. --- There's still a couple fate instances that use mingw.org headers/libs, and this is the only detail that currently stops them from building. --- libavformat/network.h | 3 +++ 1 file changed, 3 inser

[FFmpeg-devel] [PATCH 1/2] rtsp: Use AVERROR() with errno.h error codes for error returns

2019-12-11 Thread Martin Storsjö
For this particular function, it's only required to return nonzero, but use the common AVERROR() pattern for consistency. --- libavformat/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 859defa592..cd6fc32a29 100644 --- a/lib

[FFmpeg-devel] [PATCH] avformat: Don't free old extradata before ff_alloc/get_extradata

2019-12-11 Thread Andreas Rheinhardt
These functions already free it themselves before they allocate the new extradata. Signed-off-by: Andreas Rheinhardt --- Resending because I got the commit title wrong: There is no ff_allocate_extradata. libavformat/avidec.c | 2 -- libavformat/cafdec.c | 7 ++- libavformat/conc

[FFmpeg-devel] [PATCH] avformat/apngdec: Remove goto fail that does nothing

2019-12-11 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- Resending because of a merge conflict due to the other change. libavformat/apngdec.c | 31 --- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c index 65332c3fc5..424b450

Re: [FFmpeg-devel] [PATCH] lavc/hevc_cabac: fix cbf_cb and cbf_cr for transform depth 4

2019-12-11 Thread Carl Eugen Hoyos
Am Mi., 11. Dez. 2019 um 09:57 Uhr schrieb Linjie Fu : > > The max transform depth is 5(from 0 to 4), so we need 5 cabac states for > cbf_cb and cbf_cr. > > See Table 9-4 for details. Does this change the output of a file? If yes, please provide it / implement a fate test. Carl Eugen

[FFmpeg-devel] [PATCH] avformat/apngdec: Return error for incomplete header

2019-12-11 Thread Andreas Rheinhardt
When an incomplete header is encountered, apng_read_header would under certain circumstances only return the return value of the last successfull call. So override this by returning AVERROR(EIO) manually. Signed-off-by: Andreas Rheinhardt --- libavformat/apngdec.c | 2 ++ 1 file changed, 2 inser

Re: [FFmpeg-devel] [PATCHv2] fate: Add an option for disabling the 2k/4k tests

2019-12-11 Thread Martin Storsjö
On Wed, 11 Dec 2019, Carl Eugen Hoyos wrote: Am Mi., 11. Dez. 2019 um 09:39 Uhr schrieb Martin Storsjö : When testing on a memory limited system, these tests consume a significant amount of memory and can often fail if testing by running multiple processes in parallel. --- Adjusted to use ALLY

Re: [FFmpeg-devel] [PATCH] avfilter/scale_eval: remove redundant mathematical constants

2019-12-11 Thread Gyan
On 11-12-2019 11:45 am, Gyan wrote: On 10-12-2019 07:30 pm, Gyan wrote: Regards, Gyan Will push soon. Pushed as 78676ee8f81269937afdcaa2d9bb7bf77f53c1ba Gyan ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/lis

Re: [FFmpeg-devel] [PATCHv2] fate: Add an option for disabling the 2k/4k tests

2019-12-11 Thread Carl Eugen Hoyos
Am Mi., 11. Dez. 2019 um 09:39 Uhr schrieb Martin Storsjö : > > When testing on a memory limited system, these tests consume a > significant amount of memory and can often fail if testing by running > multiple processes in parallel. > --- > Adjusted to use ALLYES instead of a -yes-yes construct. >

Re: [FFmpeg-devel] [PATCH v6 1/2] lavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4

2019-12-11 Thread Tsuchiya, Yuki (SHES)
Hello James, On 2019/12/10 22:30, "James Almer" wrote: >> diff --git a/libavformat/utils.c b/libavformat/utils.c >> index 8196442dd1..70f9e23d8c 100644 >> --- a/libavformat/utils.c >> +++ b/libavformat/utils.c >> @@ -1021,7 +1021,8 @@ static int is_intra_only(enum AVCodecID

[FFmpeg-devel] [PATCHv2 2/2] checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparing

2019-12-11 Thread Martin Storsjö
As the values generated by av_bmg_get can be arbitrarily large (only the stddev is specified), we can't use a fixed tolerance. This matches what was done for test_vector_dmul_scalar in 38f966bdb. This fixes the float_dsp checkasm test for some seeds, when built with clang for mingw/x86_32. --

[FFmpeg-devel] [PATCH] checkasm: af_afir: Use a dynamic tolerance depending on values

2019-12-11 Thread Martin Storsjö
As the values generated by av_bmg_get can be arbitrarily large (only the stddev is specified), we can't use a fixed tolerance. Calculate a dynamic tolerance (like in float_dsp from 38f966bdb), based on the individual steps of the calculation. This fixes running this test with certain seeds, wh

[FFmpeg-devel] [PATCH] lavf/zf_zscale: remove unused code

2019-12-11 Thread Linjie Fu
Signed-off-by: Linjie Fu --- libavfilter/vf_zscale.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/libavfilter/vf_zscale.c b/libavfilter/vf_zscale.c index db2dd17..bd5825f 100644 --- a/libavfilter/vf_zscale.c +++ b/libavfilter/vf_zscale.c @@ -287,13 +287,6 @@ static int config_props(A

[FFmpeg-devel] 回复: [PATCH 1/1] add without_captureblt option for libavdevice/gdigrab.c, when useing the bitblt function with CAPTUREBLT it caused the mouse cursor flicker. most time we dont need this

2019-12-11 Thread _ FgoDt
did someone review the patch? 发件人: _ FgoDt 发送时间: 2019年11月15日 15:03 收件人: ffmpeg-devel@ffmpeg.org 抄送: _ FgoDt 主题: [PATCH 1/1] add without_captureblt option for libavdevice/gdigrab.c, when useing the bitblt function with CAPTUREBLT it caused the mouse cursor flick

[FFmpeg-devel] [PATCH] lavc/utils.c: fix code indentations

2019-12-11 Thread Linjie Fu
Introduced since 4b4a02b8. Signed-off-by: Linjie Fu --- libavcodec/utils.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 75e7035..8a49234 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -654,12 +654,12 @

[FFmpeg-devel] [PATCH] lavc/hevc_cabac: fix cbf_cb and cbf_cr for transform depth 4

2019-12-11 Thread Linjie Fu
The max transform depth is 5(from 0 to 4), so we need 5 cabac states for cbf_cb and cbf_cr. See Table 9-4 for details. Signed-off-by: Xu Guangxin Signed-off-by: Linjie Fu --- libavcodec/hevc_cabac.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions

[FFmpeg-devel] [PATCH] lavc/mips: simplify the switch code

2019-12-11 Thread Linjie Fu
Signed-off-by: Linjie Fu --- libavcodec/mips/h264pred_init_mips.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/mips/h264pred_init_mips.c b/libavcodec/mips/h264pred_init_mips.c index 63637b8..e537ad8 100644 --- a/libavcodec/mips/h264pred_init_mips.c +++ b/libavcodec/mips/h264p

[FFmpeg-devel] [PATCH 4/4] lavc/x86/hevc_add_res: Fix coeff overflow in ADD_RES_SSE_16_32_8

2019-12-11 Thread Linjie Fu
Fix overflow for coeff -32768 in function ADD_RES_SSE_16_32_8 with no performance drop.(SSE2/AVX/AVX2) ./checkasm --test=hevc_add_res --bench Mainline: - hevc_add_res.add_residual [OK] hevc_add_res_32x32_8_sse2: 127.5 hevc_add_res_32x32_8_avx: 127.0 hevc_add_res_32x32_8_avx2: 86.5

[FFmpeg-devel] [PATCH 3/4] lavc/x86/hevc_add_res: Fix overflow in ADD_RES_SSE_8_8

2019-12-11 Thread Linjie Fu
Fix overflow for coeff -32768 in function ADD_RES_SSE_8_8 with no performance drop. ./checkasm --test=hevc_add_res --bench Mainline: - hevc_add_res.add_residual [OK] hevc_add_res_8x8_8_sse2: 15.5 Add overflow test case: - hevc_add_res.add_residual [FAILED] After: - hevc_add_res.add_re

[FFmpeg-devel] [PATCH 2/4] lavc/x86/hevc_add_res: Fix overflow in ADD_RES_MMX_4_8

2019-12-11 Thread Linjie Fu
Fix overflow for coeff -32768 in function ADD_RES_MMX_4_8 with no performance drop. ./checkasm --test=hevc_add_res --bench Mainline: - hevc_add_res.add_residual [OK] hevc_add_res_4x4_8_mmxext: 15.5 Add overflow test case: - hevc_add_res.add_residual [FAILED] After: - hevc_add_res.add_

[FFmpeg-devel] [PATCH 1/4] tests/checkasm: add overflow test for hevc_add_res

2019-12-11 Thread Linjie Fu
Add overflow test for hevc_add_res when int16_t coeff = -32768. The result of C is good, while ASM is not. To verify: make fate-checkasm-hevc_add_res ffmpeg/tests/checkasm/checkasm --test=hevc_add_res ./checkasm --test=hevc_add_res checkasm: using random seed 679391863 MMXEXT: hevc_ad

[FFmpeg-devel] [PATCHv2] fate: Add an option for disabling the 2k/4k tests

2019-12-11 Thread Martin Storsjö
When testing on a memory limited system, these tests consume a significant amount of memory and can often fail if testing by running multiple processes in parallel. --- Adjusted to use ALLYES instead of a -yes-yes construct. Also moved the 2k tests to the same option. --- configure |

Re: [FFmpeg-devel] [PATCH 01/11] avformat/mov: Use ff_alloc_extradata for dvdsub extradata

2019-12-11 Thread myp...@gmail.com
On Wed, Dec 11, 2019 at 6:00 AM Andreas Rheinhardt wrote: > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/mov.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/libavformat/mov.c b/libavformat/mov.c > index 7553a7fdfc..733f4e4a34 100644 > --- a/libav

Re: [FFmpeg-devel] [PATCH, v2] lavc/vaapi_encode: grow packet if vaMapBuffer returns multiple buffers

2019-12-11 Thread Song, Ruiling
> -Original Message- > From: ffmpeg-devel On Behalf Of Max > Dmitrichenko > Sent: Wednesday, November 20, 2019 3:04 PM > To: FFmpeg development discussions and patches > Cc: Li, Zhong > Subject: Re: [FFmpeg-devel] [PATCH, v2] lavc/vaapi_encode: grow packet if > vaMapBuffer returns multip