Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: check avctx->hwaccel when hwaccel pix_fmt selected

2020-09-17 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Thursday, September 17, 2020 5:21 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: check avctx->hwaccel > when hwaccel pix_fmt selected > > On Thu,

Re: [FFmpeg-devel] [PATCH 3/8] avcodec/vlc: Add macro for ff_init_vlc_sparse()

2020-09-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > ff_init_vlc_sparse() supports arrays of uint8_t, uint16_t and uint32_t > as input (and it also supports padding/other elements in between the > elements). This makes the typical case in which the input is a simple > array more cumbersome. E.g. for an array of uint8_t one

Re: [FFmpeg-devel] [PATCH 01/30] avcodec/flashsvenc: Avoid allocation of buffer, fix memleak

2020-09-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Up until now, the flashsv encoder tried to allocate two buffers in its > init function; if only one of these allocations succeeds, the other > buffer leaks. Fix this by making one of these buffers part of the > context (its size is a compile-time constant). > >

[FFmpeg-devel] [PATCH] avformat/hlsenc: compute video_keyframe_size after write keyframe

2020-09-17 Thread Steven Liu
fix ticket: 8636 When write keyframe and the keyframe is the frist packet of the segment, then compute the size of the keyframe which have been write into segment first packet. and set the start position of the segment, should not use avio_tell(vs->out) to get the keyframe position, because it can

[FFmpeg-devel] [PATCH 3/3] avdevice/lavfi: av_malloc -> av_malloc_array

2020-09-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavdevice/lavfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index a4b510f..ff0be64 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -69,7 +69,7 @@ static int

[FFmpeg-devel] [PATCH 1/3] avdevice/lavfi: fix FIXME and check a/v type by codec_type

2020-09-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavdevice/lavfi.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 4f05a15..268dc0d 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -386,6 +386,7 @@ static

[FFmpeg-devel] [PATCH 2/3] avdevice/lavfi: unref the frame on failure

2020-09-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavdevice/lavfi.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c index 268dc0d..a4b510f 100644 --- a/libavdevice/lavfi.c +++ b/libavdevice/lavfi.c @@ -432,7

Re: [FFmpeg-devel] [PATCH 13/21] avcodec/smacker: Remove redundant checks when reading VLC codes

2020-09-17 Thread Andreas Rheinhardt
Paul B Mahol: > On 8/1/20, Andreas Rheinhardt wrote: >> The VLC codes in question originate from a Huffmann tree and so every >> sequence of bits that is longer than the longest code contains an >> initial sequence that is a valid code. Given that it has been checked >> during reading said tree

[FFmpeg-devel] Patch: added V210 codec support to MXF encoder

2020-09-17 Thread Swami Kevala
Verified the container_ui and element_ui with a sample file produced by Sony Server 1.3.0.0.1 (Sony MXF Development Kit (Win32) 4.9.1.118.1) Tested converting an ffv1/mkv to v210/mxf successfully -- *- 9442504660* --

Re: [FFmpeg-devel] [PATCH] avformat/aviobuf: fix broken logic in ffio_ensure_seekback()

2020-09-17 Thread Paul B Mahol
On Thu, Sep 17, 2020 at 09:44:52PM +0200, Marton Balint wrote: > > > On Thu, 17 Sep 2020, Paul B Mahol wrote: > > > This removes big CPU overhead for demuxing chained ogg streams. > > > > Signed-off-by: Paul B Mahol > > --- > > libavformat/aviobuf.c | 10 +- > > 1 file changed, 5

Re: [FFmpeg-devel] [PATCH v2 3/3] avformat/mxfdec: Read Apple private Content Light Level from MXF

2020-09-17 Thread Tomas Härdin
mån 2020-09-14 klockan 12:23 +0200 skrev Tomas Härdin: > ons 2020-09-09 klockan 15:56 +0100 skrev Harry Mallon: > > * As embedded by Apple Compressor > > > > Signed-off-by: Harry Mallon > > --- > > libavformat/mxfdec.c| 27 + > > tests/fate/mxf.mak | 4 +

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_scale: translate and verify swscale internal range flag

2020-09-17 Thread Jan Ekström
On Thu, Sep 17, 2020 at 11:31 PM Michael Niedermayer wrote: > > On Wed, Sep 16, 2020 at 11:18:48PM +0300, Jan Ekström wrote: > > This value - while it looks like the actual range of the content - > > is nothing but the internal value of swscale. > > > > Thus, if we have RGB content, force the

Re: [FFmpeg-devel] [PATCH v2] avfilter/vf_scale: translate and verify swscale internal range flag

2020-09-17 Thread Michael Niedermayer
On Wed, Sep 16, 2020 at 11:18:48PM +0300, Jan Ekström wrote: > This value - while it looks like the actual range of the content - > is nothing but the internal value of swscale. > > Thus, if we have RGB content, force the value to 1. Swscale will > ignore it, but at least the value of the output

Re: [FFmpeg-devel] [PATCH] avfilter/vf_scale: set RGB to always be full range

2020-09-17 Thread Michael Niedermayer
On Thu, Sep 17, 2020 at 11:10:29AM +0100, Kevin Wheatley wrote: > On Wed, Sep 16, 2020 at 9:43 PM Jan Ekström wrote: > > > > On Wed, Sep 16, 2020 at 11:38 PM Michael Niedermayer > > wrote: > > > Does anything document the meaning of range or AVCOL_RANGE for RGB ? > > > The enum is documented as

Re: [FFmpeg-devel] [PATCH] libavformat/rmdec.c: Fix Use-of-uninitialized-value in ff_codec_get_id

2020-09-17 Thread Michael Niedermayer
On Mon, Sep 14, 2020 at 10:49:00AM -0700, Thierry Foucu wrote: > In case the pb does not contain 4 bytes, the buf[256] will not be > initialize before we pass it to ff_codec_get_id > --- > libavformat/rmdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [FFmpeg-devel] [PATCH] avformat/aviobuf: fix broken logic in ffio_ensure_seekback()

2020-09-17 Thread Marton Balint
On Thu, 17 Sep 2020, Paul B Mahol wrote: This removes big CPU overhead for demuxing chained ogg streams. Signed-off-by: Paul B Mahol --- libavformat/aviobuf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index

[FFmpeg-devel] [PATCH v2] avcodec/h264_slice: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread James Almer
Signed-off-by: James Almer --- Now it also updates the x264_build field. libavcodec/h264_slice.c | 20 1 file changed, 20 insertions(+) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index cfc29e186c..f091cd4dc1 100644 --- a/libavcodec/h264_slice.c +++

[FFmpeg-devel] [PATCH] avcodec/h264_slice: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread James Almer
Signed-off-by: James Almer --- libavcodec/h264_slice.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index cfc29e186c..bb95a92792 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -439,6 +439,25 @@

Re: [FFmpeg-devel] [PATCH] avcodec/svq1dec: use av_malloc_array() to allocate pmv

2020-09-17 Thread Guangxin Xu
On Thu, Sep 17, 2020 at 10:00 PM Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/svq1dec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c > index 25bd3d0253..ddd02f354e 100644 > ---

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/hevcdec: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread Guangxin Xu
On Thu, Sep 17, 2020 at 11:09 PM James Almer wrote: > On 9/17/2020 10:59 AM, Guangxin Xu wrote: > > On Thu, Sep 17, 2020 at 9:35 PM James Almer wrote: > > > >> Signed-off-by: James Almer > >> --- > >> libavcodec/hevcdec.c | 19 +++ > >> 1 file changed, 19 insertions(+) > >> >

Re: [FFmpeg-devel] [PATCH] avcodec/svq1dec: use av_malloc_array() to allocate pmv

2020-09-17 Thread James Almer
On 9/17/2020 10:59 AM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/svq1dec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c > index 25bd3d0253..ddd02f354e 100644 > --- a/libavcodec/svq1dec.c > +++

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/hevcdec: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread James Almer
On 9/17/2020 10:59 AM, Guangxin Xu wrote: > On Thu, Sep 17, 2020 at 9:35 PM James Almer wrote: > >> Signed-off-by: James Almer >> --- >> libavcodec/hevcdec.c | 19 +++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c >> index

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/hevcdec: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread Guangxin Xu
On Thu, Sep 17, 2020 at 9:35 PM James Almer wrote: > Signed-off-by: James Almer > --- > libavcodec/hevcdec.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c > index 1f3ea54d39..2481730788 100644 > ---

[FFmpeg-devel] [PATCH] avcodec/svq1dec: use av_malloc_array() to allocate pmv

2020-09-17 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/svq1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 25bd3d0253..ddd02f354e 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -679,7 +679,7 @@ static int

[FFmpeg-devel] [PATCH 1/2] avcodec/hevcdec: sync SEI derived AVCodecContext fields across threads

2020-09-17 Thread James Almer
Fixes ticket #8610. Found-by: Pavel Koshevoy Signed-off-by: James Almer --- libavcodec/hevcdec.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index c1de75abe1..1f3ea54d39 100644 ---

[FFmpeg-devel] [PATCH 2/2] avcodec/hevcdec: sync User Data Unregistered SEI buffers across threads

2020-09-17 Thread James Almer
Signed-off-by: James Almer --- libavcodec/hevcdec.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 1f3ea54d39..2481730788 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -3548,6 +3548,25 @@ static int

Re: [FFmpeg-devel] [PATCH v3 2/2] dnn_backend_native_layer_conv2d.c: refine code.

2020-09-17 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Hendrik > Leppkes > Sent: 2020年9月17日 20:28 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v3 2/2] > dnn_backend_native_layer_conv2d.c: refine code. > > On Thu, Sep 17, 2020 at 2:02 PM Guo,

Re: [FFmpeg-devel] [PATCH] avocdec/hevcdec: set SEI derived AVCodecContext fields as soon as they are parsed

2020-09-17 Thread James Almer
On 9/16/2020 9:36 PM, James Almer wrote: > export_stream_params() may not be called in some scenarios, for example > leaving > both the AVCodecContext and subsequent output frames with the color_trc value > taken from the VUI instead of the Alternative Transfer Characteristics SEI. > >

Re: [FFmpeg-devel] [PATCH v3 2/2] dnn_backend_native_layer_conv2d.c: refine code.

2020-09-17 Thread Hendrik Leppkes
On Thu, Sep 17, 2020 at 2:02 PM Guo, Yejun wrote: > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of Hendrik > > Leppkes > > Sent: 2020年9月17日 19:21 > > To: FFmpeg development discussions and patches > > Subject: Re: [FFmpeg-devel] [PATCH v3 2/2] > >

Re: [FFmpeg-devel] [PATCH v3 2/2] dnn_backend_native_layer_conv2d.c: refine code.

2020-09-17 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Hendrik > Leppkes > Sent: 2020年9月17日 19:21 > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH v3 2/2] > dnn_backend_native_layer_conv2d.c: refine code. > > On Thu, Sep 17, 2020 at 4:07 AM Guo,

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/videotoolboxenc: fix use after destroy

2020-09-17 Thread Richard Kern
> On Sep 10, 2020, at 11:13 AM, Zhao Zhili wrote: > >  >> 在 2020年9月10日,下午10:21,Richard Kern 写道: >> >>  >> On Sep 10, 2020, at 8:57 AM, zhilizhao wrote: >>> >>>  >>> > On Aug 28, 2020, at 8:55 AM, Steven Liu wrote: 于2020年8月27日周四 下午5:39写道: > > From: Zhao

[FFmpeg-devel] avformat/img2enc: add strftime_mkdir option to automatically create time-based directories

2020-09-17 Thread xiaofeng
-- xiaofeng -- gpg key fingerprint: 2048R/5E63005B C84F 671F 70B7 7330 4726 5EC8 02BC CBA2 5E63 005B -- ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel From 1d8e36f2231a03999d874a6915d042b0ebbe3d68 Mon Sep 17 00:00:00 2001 From: wxf Date: Thu,

Re: [FFmpeg-devel] [PATCH v3 2/2] dnn_backend_native_layer_conv2d.c: refine code.

2020-09-17 Thread Hendrik Leppkes
On Thu, Sep 17, 2020 at 4:07 AM Guo, Yejun wrote: > > > > > -Original Message- > > From: ffmpeg-devel On Behalf Of > > xuju...@sjtu.edu.cn > > Sent: 2020年9月16日 18:07 > > To: ffmpeg-devel@ffmpeg.org > > Cc: xuju...@sjtu.edu.cn > > Subject: [FFmpeg-devel] [PATCH v3 2/2]

Re: [FFmpeg-devel] [PATCH] avformat: add CRI AAX demuxer

2020-09-17 Thread Paul B Mahol
On Sun, Sep 13, 2020 at 08:01:33PM +0200, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/adxdec.c | 16 ++ > libavformat/Makefile | 1 + > libavformat/aaxdec.c | 377 +++ > libavformat/allformats.c | 1 + > 4 files

Re: [FFmpeg-devel] [PATCH] avfilter/vf_scale: set RGB to always be full range

2020-09-17 Thread Kevin Wheatley
On Wed, Sep 16, 2020 at 9:43 PM Jan Ekström wrote: > > On Wed, Sep 16, 2020 at 11:38 PM Michael Niedermayer > wrote: > > Does anything document the meaning of range or AVCOL_RANGE for RGB ? > > The enum is documented as "MPEG vs JPEG YUV range." > > > > What is limited range RGB ? what would the

[FFmpeg-devel] [PATCH] avformat/aviobuf: fix broken logic in ffio_ensure_seekback()

2020-09-17 Thread Paul B Mahol
This removes big CPU overhead for demuxing chained ogg streams. Signed-off-by: Paul B Mahol --- libavformat/aviobuf.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index a77517d712..ce9b7d59c9 100644 ---

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: check avctx->hwaccel when hwaccel pix_fmt selected

2020-09-17 Thread Hendrik Leppkes
On Thu, Sep 17, 2020 at 10:38 AM Fei Wang wrote: > > Pix fmt with hwaccel flag may not be chosen in format probing, in > this case avctx->hwaccel will not be inited. > > Signed-off-by: Fei Wang > --- > libavcodec/av1dec.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > >

[FFmpeg-devel] [PATCH] avcodec/av1dec: check avctx->hwaccel when hwaccel pix_fmt selected

2020-09-17 Thread Fei Wang
Pix fmt with hwaccel flag may not be chosen in format probing, in this case avctx->hwaccel will not be inited. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: Check tiles sizes, fix assert, don't read bytes bitwise

2020-09-17 Thread Wang, Fei W
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: Thursday, September 17, 2020 11:37 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: Check tiles sizes, fix > assert, don't read bytes bitwise > > On 9/17/2020 12:19 AM,

Re: [FFmpeg-devel] [PATCH] lavf/srt: fix build fail when used the libsrt 1.4.1

2020-09-17 Thread Gyan Doshi
On 15-09-2020 12:47 pm, myp...@gmail.com wrote: On Tue, Sep 15, 2020 at 2:23 PM Gyan Doshi wrote: This should be backported to 4.3 and other releases whose builds fail. Gyan Will backporting, thx Ping. 4.3.1 build with libsrt remains broken. Thanks, Gyan

Re: [FFmpeg-devel] [PATCH] avformat/aviobuf: fix broken logic in ffio_ensure_seekback()

2020-09-17 Thread Marton Balint
On Wed, 16 Sep 2020, Paul B Mahol wrote: This removes big CPU overhead for demuxing chained ogg streams. Signed-off-by: Paul B Mahol --- libavformat/aviobuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index

Re: [FFmpeg-devel] [PATCH] avcodec/av1dec: Check tiles sizes, fix assert, don't read bytes bitwise

2020-09-17 Thread James Almer
On 9/17/2020 12:19 AM, Andreas Rheinhardt wrote: > Tiles have a size field with a length from one to four bytes. As such it > is not possible to read it all at once with a call to get_bits() as this > only allows to read up to 25 bits; this is guarded by an av_assert2. Yet > this is done by the