Re: [FFmpeg-devel] [PATCH 1/3] avcodec/decode: fetch packets from the pkt_props FIFO on every frame returned

2021-06-21 Thread James Almer
On 6/18/2021 7:02 PM, James Almer wrote: Fixes memleaks on decoders that don't call ff_decode_frame_props(). Signed-off-by: James Almer --- libavcodec/decode.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 75bc7ad9

Re: [FFmpeg-devel] Getting started

2021-06-21 Thread Michael Niedermayer
On Sat, Jun 19, 2021 at 12:16:28PM -0500, Mihir Shah wrote: > Hi, > > I would be interested in contributing to ffmpeg, can you please provide me > suggestions on how to get started/any good first issues? look at https://trac.ffmpeg.org/ theres alot that can be done bugs to fix, features to add, g

[FFmpeg-devel] [PATCH] avformat/udp: fix check for pthread_cond_wait return value

2021-06-21 Thread Zhao Zhili
POSIX errno is positive. We have strict_pthread_cond_wait to handle error code during development. --- libavformat/udp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/udp.c b/libavformat/udp.c index 9b9d3de197..bbe5aecc46 100644 --- a/libavformat/udp.c +++ b/li

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread Michael Niedermayer
On Sun, Jun 20, 2021 at 09:42:38AM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavcodec/libx264.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c > index 36fdb

[FFmpeg-devel] [PATCH] avformat/av_get_frame_filename2: Add timecode image extract option

2021-06-21 Thread Alex Mi
From: Marcus Johansson Added the option to extract images with timecode as token The '%t' parameter is now supported for for images sequences just like the '%d' param When using '%t', images will have HH.MM.SS.XXX appended. Minor changes were made to the code by Marcus Johansson. See https://tr

[FFmpeg-devel] [PATCH] avformat/oggparsevorbis: Update end_trimming for the last packet

2021-06-21 Thread Guangyu Sun
From: Guangyu Sun Without end_trimming, the last packet will contain unexpected samples used for padding. This commit partially fixes #6367 when the audio length is long enough. dd if=/dev/zero of=./silence.raw count=20 bs=500 oggenc --raw silence.raw --output=silence.ogg oggdec --raw --output

Re: [FFmpeg-devel] [PATCH] libavcodec/libx265: add user data unregistered SEI encoding

2021-06-21 Thread Brad Hards
On Monday, 14 June 2021 10:54:09 AM AEST Brad Hards wrote: > On Saturday, 5 June 2021 8:20:28 PM AEST Brad Hards wrote: > > --- > > > > libavcodec/libx265.c | 31 +++ > > 1 file changed, 31 insertions(+) > > > > diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c

Re: [FFmpeg-devel] [PATCH] avcodec: Pass the HDR10+ metadata to the packet side data in VP9 encoder

2021-06-21 Thread Mohammad Izadi
LGTM? On Thu, Jun 17, 2021 at 10:21 PM Mohammad Izadi wrote: > > > On Thu, Jun 17, 2021 at 1:04 PM James Zern > wrote: > >> On Wed, Jun 16, 2021 at 3:53 PM Mohammad Izadi >> wrote: >> > >> > HDR10+ metadata is stored in the bit stream for HEVC. The story is >> different for VP9 and cannot sto

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: remove unused AVCodec.decode() callback

2021-06-21 Thread James Almer
On 6/17/2021 2:45 PM, James Almer wrote: The AVCodec.receive_frame() callback takes precedence. Signed-off-by: James Almer --- libavcodec/cuviddec.c | 32 1 file changed, 32 deletions(-) diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index c34962

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: remove unused AVCodec.decode() callback

2021-06-21 Thread Timo Rothenpieler
On 21.06.2021 19:56, James Almer wrote: On 6/17/2021 2:45 PM, James Almer wrote: The AVCodec.receive_frame() callback takes precedence. Signed-off-by: James Almer ---   libavcodec/cuviddec.c | 32   1 file changed, 32 deletions(-) diff --git a/libavcodec/cuvidd

[FFmpeg-devel] [PATCH 2/3] avcodec/exr: Better size checks

2021-06-21 Thread Michael Niedermayer
Fixes: signed integer overflow: 3530839700044513368 + 8386093932303352321 cannot be represented in type 'long long' Fixes: 35182/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5398383270428672 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/proj

[FFmpeg-devel] [PATCH 1/3] avcodec/clearvideo: Check tile_size to be not too large

2021-06-21 Thread Michael Niedermayer
Fixes: left shift of 1 by 31 places cannot be represented in type 'int' Fixes: 35023/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CLEARVIDEO_fuzzer-6740166587842560 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nie

[FFmpeg-devel] [PATCH 3/3] avcodec/cpia: Fix missing src_size update

2021-06-21 Thread Michael Niedermayer
Fixes: out of array read Fixes: 35210/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CPIA_fuzzer-5669199688105984 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/cpia.c | 1 + 1 file change

[FFmpeg-devel] [PATCH v2 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libx264.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 36fdb56..3caefee 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -749,6 +749,

[FFmpeg-devel] [PATCH v2 2/2] avcodec/libx264: Separate headers not supported in AVC-Intra mode

2021-06-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libx264.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 3caefee..be05919 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -893,6 +893,11 @@ static av_cold int X2

[FFmpeg-devel] [PATCH v3 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libx264.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 36fdb56..d580f5a 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -749,6 +749,

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread James Almer
On 6/21/2021 10:36 PM, lance.lmw...@gmail.com wrote: From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libx264.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 36fdb56..d580f5a 100644 --- a/libavc

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread lance . lmwang
On Mon, Jun 21, 2021 at 05:07:48PM +0200, Michael Niedermayer wrote: > On Sun, Jun 20, 2021 at 09:42:38AM +0800, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavcodec/libx264.c | 13 - > > 1 file changed, 12 insertions(+), 1 dele

Re: [FFmpeg-devel] [PATCH 1/2] lavc/qsvenc_hevc: allow user set more coding options

2021-06-21 Thread Xiang, Haihao
On Mon, 2021-06-21 at 02:15 +, Xiang, Haihao wrote: > On Sun, 2021-06-20 at 23:03 +0800, Zhong Li wrote: > > Haihao Xiang 于2021年4月25日周日 上午9:32写道: > > > > > > The SDK supports NalHrdConformance, RecoveryPointSEI and AUDelimiter for > > > hevc encoder, so we may allow user to set these coding o

Re: [FFmpeg-devel] [PATCH v3 1/2] avcodec/libx264: Add support for Sony XAVC Class 300 and 480

2021-06-21 Thread lance . lmwang
On Mon, Jun 21, 2021 at 10:37:38PM -0300, James Almer wrote: > On 6/21/2021 10:36 PM, lance.lmw...@gmail.com wrote: > > From: Limin Wang > > > > Signed-off-by: Limin Wang > > --- > > libavcodec/libx264.c | 15 ++- > > 1 file changed, 14 insertions(+), 1 deletion(-) > > > > diff -

[FFmpeg-devel] [PATCH 0/2] TTML in MP4, part 1

2021-06-21 Thread Jan Ekström
To keep it simpler this first part includes only non-fragmented use cases. Contains the basic mapping code as well as the function that writes out the squashed documents. Works with both subtitle-only output as well as with other streams. Currently attempts to see the lengthiest streams in the mux

[FFmpeg-devel] [PATCH 1/2] avformat/ttml: split TTML paragraph based or not check into header

2021-06-21 Thread Jan Ekström
From: Jan Ekström This way it can be re-utilized in movenc. Signed-off-by: Jan Ekström --- libavformat/ttmlenc.c | 9 ++--- libavformat/ttmlenc.h | 39 +++ 2 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 libavformat/ttmlenc.h diff

[FFmpeg-devel] [PATCH 2/2] avformat/movenc: add support for TTML muxing

2021-06-21 Thread Jan Ekström
From: Jan Ekström Includes basic support for both the ISMV ('dfxp') and MP4 ('stpp') methods. This initial version also foregoes fragmentation support as this eases the initial review. Signed-off-by: Jan Ekström --- libavformat/Makefile | 2 +- libavformat/isom.h| 3 + libavfo