[FFmpeg-devel] [PATCH 1/1] libavutil/opt: fix mis-alignment of option and constant values for filter help

2021-10-12 Thread Soft Works
Before: overlay AVOptions: x ..FV... set the x expression (default "0") y ..FV... set the y expression (default "0") eof_action..FV... Action to take when encountering EOF from secondary input (from 0 to 2) (default

[FFmpeg-devel] [PATCH 1/1] Print bit depth when executing 'ffmpeg -pix_fmts'

2021-10-12 Thread Soft Works
New output looks like this: Pixel formats: I = Supported Input format for conversion .O... = Supported Output format for conversion ..H.. = Hardware accelerated format ...P. = Paletted format B = Bitstream format FLAGS NAMENB_COMPONENTS BITS_PER_PIXEL BIT_DEPTH - IO...

Re: [FFmpeg-devel] [PATCH 1/4] libavcodec/adts_header: add frame_length field and avpriv function to parse AAC ADTS header

2021-10-12 Thread Steven Liu
> 2021年9月22日 上午2:40,Nachiket Tarate 写道: > > These will be used by HLS demuxer in case of sample decryption. > > Signed-off-by: Nachiket Tarate > --- > libavcodec/adts_header.c | 1 + > libavcodec/adts_header.h | 15 +++ > libavcodec/adts_parser.c | 31

[FFmpeg-devel] [PATCH 5/5] avfilter/movie: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/src_movie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index 573f363705..2002e176b3 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -332,7 +332,7 @@ static

[FFmpeg-devel] [PATCH 4/5] avfilter/ocr: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/vf_ocr.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_ocr.c b/libavfilter/vf_ocr.c index f6249e61fc..a8be529033 100644 --- a/libavfilter/vf_ocr.c +++ b/libavfilter/vf_ocr.c @@ -115,8 +115,10 @@ static av_cold

[FFmpeg-devel] [PATCH 3/5] avfilter/aphasemeter: add null check

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavfilter/avf_aphasemeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/avf_aphasemeter.c b/libavfilter/avf_aphasemeter.c index d9302cf867..eca8751258 100644 --- a/libavfilter/avf_aphasemeter.c +++ b/libavfilter/avf_aphasemeter.c

[FFmpeg-devel] [PATCH 2/5] fftools/cmdutils: Print filter input/output formats in help output

2021-10-12 Thread Soft Works
Exmaple command: ffmpeg -h filters=overlay Output: Filter overlay Overlay a video source on top of the input. slice threading supported Inputs: #0: main (video) [yuv420p, yuvj420p, yuva420p, nv12, nv21] #1: overlay (video) [yuva420p] Outputs: #0: default

[FFmpeg-devel] [PATCH 1/5] avfilter/avfilter: Add avfilter_alloc() and avfilter_query_formats() for initializing filters without a graph

2021-10-12 Thread Soft Works
The purpose of these additions is for being able to programatically retrieve the supported formats of a filter for each input and output without adding the filter to a graph and creating connections. Signed-off-by: softworkz --- doc/APIchanges | 3 +++ libavfilter/avfilter.c

[FFmpeg-devel] [PATCH v2 1/1] mov: read track title

2021-10-12 Thread Dong Nguyen
this change fixes issue [9438](https://trac.ffmpeg.org/ticket/9438) after commit da9cc22d5bd5f59756c2037b02966376da2cf323 ffmpeg is able to write track title metadata to mov/mp4 format file but it is not able to read back the metadata if `udta` box is inside track box then update AvStream's

Re: [FFmpeg-devel] [PATCH] avformat/mxf: support MCA audio information

2021-10-12 Thread Pierre-Anthony Lemieux
On Tue, Oct 12, 2021 at 12:29 PM Marton Balint wrote: > > > > On Tue, 12 Oct 2021, Tomas Härdin wrote: > > > mån 2021-10-11 klockan 18:32 +0200 skrev Marc-Antoine Arnaud: > >> --- > >> libavformat/mxf.h| 1 + > >> libavformat/mxfdec.c | 276 > >> ++-

Re: [FFmpeg-devel] [PATCH] avformat/mxf: support MCA audio information

2021-10-12 Thread Marton Balint
On Tue, 12 Oct 2021, Tomas Härdin wrote: mån 2021-10-11 klockan 18:32 +0200 skrev Marc-Antoine Arnaud: ---  libavformat/mxf.h    |   1 +  libavformat/mxfdec.c | 276 ++-  2 files changed, 271 insertions(+), 6 deletions(-) Did we reach a consensus on

Re: [FFmpeg-devel] [PATCH] avformat/mov: Do not hard fail if bit rate calculation overflows unless in explode mode

2021-10-12 Thread Michael Niedermayer
On Tue, Oct 12, 2021 at 04:17:31PM +0100, Derek Buitenhuis wrote: > On 10/12/2021 3:43 PM, Michael Niedermayer wrote: > > this should be using av_rescale() i think > > That seems unrelated to this patch - but I can send a second patch > that does that, if you want. > > Is your intent something

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/speexdec: Seed should be unsigned otherwise the operations done on it are undefined

2021-10-12 Thread Paul B Mahol
ok ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] avformat/westwood_vqa: Store VQFL codebook chunks

2021-10-12 Thread Pekka Väänänen
Hi, still waiting for this to get merged. I'm happy to make any changes if you still find something off. Paul, I CC'd you since you've done function changes to this file in 2012. Note that this is a prerequisite for a larger decoder patch:

[FFmpeg-devel] [PATCH v2 1/1] avutil/frame: Document the possibility of negative line sizes

2021-10-12 Thread Soft Works
Signed-off-by: softworkz --- libavutil/frame.h | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libavutil/frame.h b/libavutil/frame.h index ff2540a20f..f07e690410 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -304,7 +304,8 @@ typedef struct AVFrame {

[FFmpeg-devel] [PATCH v3 0/1] Add-probe_streams-option

2021-10-12 Thread Nicolas Gaullier
>This is a following to a precedent work which was a too long patch serie: >https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=2593 >At the end, s337m will be probed (if the user choose to) in WAV files. >But it is important to maintain workfows where typically WAV files are remuxed >in MXF

[FFmpeg-devel] [PATCH v3 1/1] avformat: Add probe_streams option

2021-10-12 Thread Nicolas Gaullier
Allow user to disable codec probing: - spdif (and s337m incl. s-adm in the future) is not sub-demuxed and may pass-through to a muxer - disable any stream probing in wav files (dts detection). - mpeg-ts files missing PAT/PMT are considered invalid. Signed-off-by: Nicolas Gaullier ---

Re: [FFmpeg-devel] [PATCH] avformat/mov: Do not hard fail if bit rate calculation overflows unless in explode mode

2021-10-12 Thread Derek Buitenhuis
On 10/12/2021 3:43 PM, Michael Niedermayer wrote: > this should be using av_rescale() i think That seems unrelated to this patch - but I can send a second patch that does that, if you want. Is your intent something like this; if (sc->data_size > INT64_MAX / 8) { av_log(s,

Re: [FFmpeg-devel] [PATCH] avformat/mov: Do not hard fail if bit rate calculation overflows unless in explode mode

2021-10-12 Thread Michael Niedermayer
On Tue, Oct 12, 2021 at 02:50:40PM +0100, Derek Buitenhuis wrote: > bit_rate is not a critical field, and we shouln't hard fail if we > can't caluclate it due to a large timebase - it needlessly breaks > valid files. > > Signed-off-by: Derek Buitenhuis > --- > libavformat/mov.c | 20

[FFmpeg-devel] [PATCH] avformat/mov: Do not hard fail if bit rate calculation overflows unless in explode mode

2021-10-12 Thread Derek Buitenhuis
bit_rate is not a critical field, and we shouln't hard fail if we can't caluclate it due to a large timebase - it needlessly breaks valid files. Signed-off-by: Derek Buitenhuis --- libavformat/mov.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git

[FFmpeg-devel] [PATCH 1/2] avcodec/speexdec: Seed should be unsigned otherwise the operations done on it are undefined

2021-10-12 Thread Michael Niedermayer
Fixes: signed integer overflow: 1664525000 + 1013904223 cannot be represented in type 'int' Fixes: 39865/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SPEEX_fuzzer-4979694508834816 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

[FFmpeg-devel] [PATCH 2/2] tools/target_dec_fuzzer: Adjust threshold for MXPEG

2021-10-12 Thread Michael Niedermayer
Fixes: Timeout Fixes: 39813/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MXPEG_fuzzer-6010298067189760 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 + 1 file

Re: [FFmpeg-devel] [PATCH] avformat/avio{, buf}: introduce public AVIOContext::bytes_read

2021-10-12 Thread Michael Niedermayer
On Mon, Oct 11, 2021 at 10:24:47PM +0300, Jan Ekström wrote: > On Mon, Oct 4, 2021 at 12:12 PM Jan Ekström wrote: > > > > On Mon, Oct 4, 2021 at 1:06 AM Michael Niedermayer > > wrote: > > > > > > On Mon, Oct 04, 2021 at 12:25:26AM +0300, Jan Ekström wrote: > > > > On Sat, Oct 2, 2021 at 2:51 PM

[FFmpeg-devel] [PATCH v2 2/3] avformat/argo_asf: pass name through as metadata

2021-10-12 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 2 ++ tests/ref/acodec/adpcm-argo | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index acf30839b9..740680ece1 100644 --- a/libavformat/argo_asf.c +++

[FFmpeg-devel] [PATCH v2 3/3] avformat/argo_asf: use title metadata when muxing

2021-10-12 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index 740680ece1..2b3569ebc3 100644 --- a/libavformat/argo_asf.c +++ b/libavformat/argo_asf.c @@ -358,14

[FFmpeg-devel] [PATCH v2 1/3] avformat/argo_asf: cleanup and NULL-terminate name field in header

2021-10-12 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 8 libavformat/argo_asf.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index 7e759c7c0c..acf30839b9 100644 --- a/libavformat/argo_asf.c +++

Re: [FFmpeg-devel] [PATCH 1/1] avutil/frame: Document the possibility of negative line sizes

2021-10-12 Thread Michael Niedermayer
On Thu, Sep 30, 2021 at 03:30:54AM +, Soft Works wrote: > Signed-off-by: softworkz > --- > libavutil/frame.h | 13 +++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > > diff --git a/libavutil/frame.h b/libavutil/frame.h > index ff2540a20f..f07e690410 100644 > ---

Re: [FFmpeg-devel] [PATCH] avformat/mxf: support MCA audio information

2021-10-12 Thread Tomas Härdin
mån 2021-10-11 klockan 18:32 +0200 skrev Marc-Antoine Arnaud: > --- >  libavformat/mxf.h    |   1 + >  libavformat/mxfdec.c | 276 > ++- >  2 files changed, 271 insertions(+), 6 deletions(-) Did we reach a consensus on this? While I think signalling ffmpeg

[FFmpeg-devel] [PATCH v5 7/9] avcodec/av1_vaapi: setting 2 output surface for film grain

2021-10-12 Thread Fei Wang
VAAPI needs 2 output surface for film grain frame. One used for reference and the other used for applying film grain and pushing to downstream. Signed-off-by: Fei Wang --- libavcodec/vaapi_av1.c | 115 ++--- 1 file changed, 108 insertions(+), 7 deletions(-)

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

2021-10-12 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 | 68 +- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/libavcodec/vaapi_av1.c

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

2021-10-12 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 v5 8/9] avcodec/av1_vaapi: enable segmentation features

2021-10-12 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 26476c7738..c57d1b898a 100644 --- a/libavcodec/vaapi_av1.c +++ b/libavcodec/vaapi_av1.c @@ -126,6 +126,9 @@ static int

[FFmpeg-devel] [PATCH v5 5/9] avcodec/dxva2_av1: fix global motion params

2021-10-12 Thread Fei Wang
From: Tong Wu Defined in spec 5.9.24/5.9.25. Since function void global_motion_params(AV1DecContext *s) already updates gm type/params, the wminvalid parameter only need to get the value from cur_frame.gm_invalid. Signed-off-by: Tong Wu --- libavcodec/dxva2_av1.c | 2 +- 1 file changed, 1

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

2021-10-12 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 v5 3/9] avcodec/av1dec: support setup shear process

2021-10-12 Thread Fei Wang
Defined in spec 7.11.3.6/7.11.3.7. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 98 + libavcodec/av1dec.h | 1 + 2 files changed, 99 insertions(+) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index a69808f7b6..db110c50c7 100644 ---

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

2021-10-12 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 v5 1/9] cbs_av1: fix incorrect data type

2021-10-12 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 --- update: 1. move additional film grain frame from av1dec.c to