Re: [FFmpeg-devel] [PATCH] avpacket: ABI bump additions

2021-07-05 Thread Lynne
3 Jun 2021, 06:58 by d...@lynne.ee: > Apr 26, 2021, 03:27 by andreas.rheinha...@outlook.com: > >> Lynne: >> >>> From 097aed2ac33dda0bb2052d8b0402711ce95079ba Mon Sep 17 00:00:00 2001 >>> From: Lynne >>> Date: Sat, 23 Jan 2021 19:56:18 +0100 >>> Subject: [PATCH] avpacket: ABI bump additions >>>

[FFmpeg-devel] [PATCH] avcodec/aacdec_template: Avoid some invalid values to be set by decode_audio_specific_config_gb()

2021-07-05 Thread Michael Niedermayer
Fixes: NULL pointer dereference Fixes: decode_spectrum_and_dequant.mp4 Found-by: Rafael Dutra Signed-off-by: Michael Niedermayer --- libavcodec/aacdec_template.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavcodec/aacdec_template.c

Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_videotoolbox: implement hwupload to convert AVFrame to CVPixelBuffer

2021-07-05 Thread Aman Karmani
On Tue, Jun 29, 2021 at 3:08 PM Aman Karmani wrote: > From: Aman Karmani > > Teach AV_HWDEVICE_TYPE_VIDEOTOOLBOX to be able to create AVFrames of type > AV_PIX_FMT_VIDEOTOOLBOX. This can be used to hwupload a regular AVFrame > into its CVPixelBuffer equivalent. > > ffmpeg -init_hw_device

[FFmpeg-devel] [PATCH] avformat/matroskadec: Fix handling of huge default durations

2021-07-05 Thread Michael Niedermayer
Fixes: negation of -9223372036854775808 cannot be represented in type 'int64_t' (aka 'long'); cast to an unsigned type to negate this value to itself Fixes: 33997/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-6752039691485184 Found-by: continuous fuzzing process

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

2021-07-05 Thread Andriy Gelman
On Sun, 04. Jul 22:51, Martin Storsjö wrote: > On Sun, 4 Jul 2021, Andriy Gelman wrote: > > > From: Andriy Gelman > > > > Currently it is only checked that the rtp port does not exceed rtp_port_max. > > > > Signed-off-by: Andriy Gelman > > --- > > libavformat/rtsp.c | 2 +- > > 1 file changed,

Re: [FFmpeg-devel] [PATCH] avcodec/mjpegdec: Try to continue decoding on zero quant matrix value

2021-07-05 Thread Andriy Gelman
On Sun, 04. Jul 21:28, Michael Niedermayer wrote: > On Sat, Jul 03, 2021 at 12:25:28PM -0400, Andriy Gelman wrote: > > From: Andriy Gelman > > > > A zero value in the quantization matrix is invalid but in practice will > > just set the transform coefficient to zero after inverse quantization. >

Re: [FFmpeg-devel] [PATCH] avfilter/fps: remove unconventional acronyms

2021-07-05 Thread Gyan Doshi
Plan to push tomorrow. On 2021-07-03 11:46, Gyan Doshi wrote: In dd770883e9, support for expressions was added. Among the constants added were labels of qnstc, qpal, sntsc & spal. These were added in ba2a8cb40b to represent parameter permutations where only the resolution is different. They

Re: [FFmpeg-devel] [PATCH V3] lavf/vf_ocr: add subregion support

2021-07-05 Thread Steven Liu
> 2021年6月18日 下午11:56,Lingjiang Fang 写道: > > > fix doc errors, ping for review, thanks :) > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 35 ++- > 2 files changed, 42 insertions(+), 1 deletion(-) > > diff --git a/doc/filters.texi

Re: [FFmpeg-devel] [PATCH 1/3] lavc/libsvtav1: Enable svtav1-params like x264-params in libx264

2021-07-05 Thread myp...@gmail.com
On Sun, Jul 4, 2021 at 8:16 PM Lynne wrote: > > 4 Jul 2021, 03:40 by mypopy...@gmail.com: > > > From: Jun Zhao > > > > Enabled the svtav1-params, then we can set all the params > > > > The whole purpose of the params field was to give it off to the encoder > and have it do its own parsing, such

[FFmpeg-devel] [PATCH V2 3/6] lavfi/dnn_backend_tf: Request-based Execution

2021-07-05 Thread Shubhanshu Saxena
This commit uses TFRequestItem and the existing sync execution mechanism to use request-based execution. It will help in adding async functionality to the TensorFlow backend later. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_common.h | 3 +

[FFmpeg-devel] [PATCH V2 2/6] lavfi/dnn_backend_tf: Add TFInferRequest and TFRequestItem

2021-07-05 Thread Shubhanshu Saxena
This commit introduces a typedef TFInferRequest to store execution parameters for a single call to the TensorFlow C API. This typedef is used in the TFRequestItem. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_tf.c | 49 1 file changed, 49

[FFmpeg-devel] [PATCH V2 4/6] lavfi/dnn_backend_tf: Separate function for filling RequestItem

2021-07-05 Thread Shubhanshu Saxena
This commit rearranges the existing code to create separate function for filling request with execution data. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_tf.c | 137 ++- 1 file changed, 80 insertions(+), 57 deletions(-) diff --git

[FFmpeg-devel] [PATCH V2 5/6] lavfi/dnn_backend_tf: Separate function for Completion Callback

2021-07-05 Thread Shubhanshu Saxena
This commit rearranges the existing code to create a separate function for the completion callback in execute_model_tf. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_tf.c | 109 +-- 1 file changed, 61 insertions(+), 48 deletions(-) diff --git

[FFmpeg-devel] [PATCH V2 6/6] lavfi/dnn_backend_tf: Error Handling

2021-07-05 Thread Shubhanshu Saxena
This commit adds handling for cases where an error may occur, clearing the allocated memory resources. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_tf.c | 80 1 file changed, 60 insertions(+), 20 deletions(-) diff --git

[FFmpeg-devel] [PATCH V2 1/6] lavfi/dnn_backend_tf: TaskItem Based Inference

2021-07-05 Thread Shubhanshu Saxena
This commit uses the common TaskItem and InferenceItem typedefs for execution in TensorFlow backend. Signed-off-by: Shubhanshu Saxena --- libavfilter/dnn/dnn_backend_tf.c | 134 ++- 1 file changed, 94 insertions(+), 40 deletions(-) diff --git

[FFmpeg-devel] [PATCH v3 8/9] avcodec/av1_vaapi: enable segmentation features

2021-07-05 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index 81b13bb1aa..6aaabed2c1 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -63,6 +63,9 @@ static int

[FFmpeg-devel] [PATCH v3 7/9] avcodec/av1_vaapi: set display surface when apply film grain

2021-07-05 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index f577447be4..81b13bb1aa 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -76,7 +76,7 @@ static int

[FFmpeg-devel] [PATCH v3 9/9] avcodec/av1_vaapi: improve decode quality

2021-07-05 Thread Fei Wang
- quantizer delta and matrix level specific. - support loop filter delta. - support use superres. Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 67 ++ 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/libavcodec/vaapi_av1.c

[FFmpeg-devel] [PATCH v3 6/9] avcodec/av1dec: add display frame for film grain usage

2021-07-05 Thread Fei Wang
Make it flexible if decode frame(without apply film grain) and display frame(applied film grain) both needed when decode film grain clips. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 43 ++- libavcodec/av1dec.h | 3 +++ 2 files changed, 45

[FFmpeg-devel] [PATCH v3 5/9] avcodec/vaapi: increase av1 decode pool size

2021-07-05 Thread Fei Wang
For film grain clip, vaapi_av1 decoder will cache additional 8 surfaces that will be used to store frames which apply film grain. So increase the pool size by plus 8 to avoid leak of surface. Signed-off-by: Fei Wang --- libavcodec/vaapi_decode.c | 2 +- 1 file changed, 1 insertion(+), 1

[FFmpeg-devel] [PATCH v3 4/9] avcodec/av1_vaapi: add gm params valid check

2021-07-05 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c index 16b7e35747..f577447be4 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -213,7 +213,8 @@ static int

[FFmpeg-devel] [PATCH v3 3/9] avcodec/av1dec: support setup shear process

2021-07-05 Thread Fei Wang
Defined in spec 7.11.3.6/7.11.3.7. Signed-off-by: Fei Wang --- update: 1. add the comment for table div_lut. libavcodec/av1dec.c | 98 + libavcodec/av1dec.h | 1 + 2 files changed, 99 insertions(+) diff --git a/libavcodec/av1dec.c

[FFmpeg-devel] [PATCH v3 2/9] avcodec/av1: extend some definitions in spec section 3

2021-07-05 Thread Fei Wang
Signed-off-by: Fei Wang --- libavcodec/av1.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libavcodec/av1.h b/libavcodec/av1.h index 0f99ae4829..951a18ecb2 100644 --- a/libavcodec/av1.h +++ b/libavcodec/av1.h @@ -114,6 +114,13 @@ enum { AV1_WARP_MODEL_TRANSLATION = 1,

[FFmpeg-devel] [PATCH v3 1/9] cbs_av1: fix incorrect data type

2021-07-05 Thread Fei Wang
Since order_hint_bits_minus_1 range is 0~7, cur_frame_hint can be most 128. And similar return value for cbs_av1_get_relative_dist. So if plus them and use int8_t for the result may lose its precision. Signed-off-by: Fei Wang --- libavcodec/cbs_av1_syntax_template.c | 2 +- 1 file changed, 1

Re: [FFmpeg-devel] [PATCH V3] lavf/vf_ocr: add subregion support

2021-07-05 Thread Lingjiang Fang
On Fri, 18 Jun 2021 23:56:56 +0800 Lingjiang Fang wrote: ping for review, thanks > fix doc errors, ping for review, thanks :) > --- > doc/filters.texi | 8 > libavfilter/vf_ocr.c | 35 ++- > 2 files changed, 42 insertions(+), 1 deletion(-) > >