Re: [FFmpeg-devel] [PATCH V2 1/3] checkasm/vf_eq: add test for vf_eq

2019-09-23 Thread Li, Zhong
> From: ffmpeg-devel On Behalf Of Ting Fu > Sent: Wednesday, September 18, 2019 3:06 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V2 1/3] checkasm/vf_eq: add test for vf_eq > > Signed-off-by: Ting Fu > --- > libavfilter/vf_eq.c | 13 --- > libavfilter/vf_eq.h

[FFmpeg-devel] [PATCH V2 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
with this change, the code will be simpler when more layers supported. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 38 -- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 4 ++- libavfilter/dnn/dnn_backend_native_layer_conv2d.h |

[FFmpeg-devel] [PATCH V2 1/2] avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts

2019-09-23 Thread Guo, Yejun
and also change CONV to DLT_CONV2D for better description Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 25 +++-- libavfilter/dnn/dnn_backend_native.h | 12 +++- libavfilter/dnn/dnn_backend_tf.c | 10 +- 3 files changed, 27 insertion

Re: [FFmpeg-devel] [PATCH V2 1/3] checkasm/vf_eq: add test for vf_eq

2019-09-23 Thread Song, Ruiling
> -Original Message- > From: ffmpeg-devel On Behalf Of > Ting Fu > Sent: Wednesday, September 18, 2019 3:06 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V2 1/3] checkasm/vf_eq: add test for vf_eq > > Signed-off-by: Ting Fu The patchset LGTM. Have also verified on li

Re: [FFmpeg-devel] [PATCH v1] lavf/mov: Fix timestamp rescale on sidx atom

2019-09-23 Thread myp...@gmail.com
On Tue, Sep 24, 2019 at 12:38 PM Jun Li wrote: > > On Thu, Aug 15, 2019 at 1:02 AM myp...@gmail.com wrote: > > > On Thu, Aug 15, 2019 at 12:49 PM Jun Li wrote: > > > > > > On Thu, Jun 20, 2019 at 2:02 AM Jun Li wrote: > > > > > > > > > > > > > > > On Tue, May 21, 2019 at 1:05 AM Jun Li wrote:

Re: [FFmpeg-devel] [PATCH v1] lavf/mov: Fix timestamp rescale on sidx atom

2019-09-23 Thread Jun Li
On Thu, Aug 15, 2019 at 1:02 AM myp...@gmail.com wrote: > On Thu, Aug 15, 2019 at 12:49 PM Jun Li wrote: > > > > On Thu, Jun 20, 2019 at 2:02 AM Jun Li wrote: > > > > > > > > > > > On Tue, May 21, 2019 at 1:05 AM Jun Li wrote: > > > > > >> > > >> > > >> On Thu, May 16, 2019 at 1:00 AM Jun Li

Re: [FFmpeg-devel] avcodec/qsv: polling free synchronization

2019-09-23 Thread Li, Zhong
> -Original Message- > From: ffmpeg-devel On Behalf Of Orlov, > Andrey > Sent: Monday, September 23, 2019 11:20 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] avcodec/qsv: polling free synchronization > > Hi all, > > Please review the change, that fixes high CPU usage on AVC

Re: [FFmpeg-devel] [PATCH 4/6] lavu/hwcontext_vaapi: add vaapi_format_map support for AYUV/Y210/Y410

2019-09-23 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel On Behalf Of > Mark Thompson > Sent: Friday, September 13, 2019 07:48 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 4/6] lavu/hwcontext_vaapi: add > vaapi_format_map support for AYUV/Y210/Y410 > > On 10/09/2019 17:07, Linjie F

Re: [FFmpeg-devel] [PATCH 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
please ignore this patch set, there is an issue found in this patch, I'll fix and send v2 patch. > -Original Message- > From: Guo, Yejun > Sent: Tuesday, September 24, 2019 8:56 AM > To: ffmpeg-devel@ffmpeg.org > Cc: Guo, Yejun > Subject: [PATCH 2/2] avfilter/dnn: unify the layer executi

[FFmpeg-devel] [PATCH v2] avformat/hls: support data protocol in uri for EXT-X-MAP

2019-09-23 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/file.c | 4 ++-- libavformat/hls.c | 13 - libavformat/http.c | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/libavformat/file.c b/libavformat/file.c index 08c7f8e6dd..8303436be0 100644 --- a/libavformat/file.c +++ b

[FFmpeg-devel] [PATCH] avformat/hls: support data protocol in uri for EXT-X-MAP

2019-09-23 Thread Steven Liu
Signed-off-by: Steven Liu --- libavformat/file.c | 4 ++-- libavformat/hls.c | 12 ++-- libavformat/http.c | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/libavformat/file.c b/libavformat/file.c index 08c7f8e6dd..8303436be0 100644 --- a/libavformat/file.c +++ b/

Re: [FFmpeg-devel] [PATCH 3/3] avformat: use avpriv_mpeg4audio_get_config2()

2019-09-23 Thread myp...@gmail.com
On Sun, Sep 22, 2019 at 7:28 AM James Almer wrote: > > Signed-off-by: James Almer > --- > libavformat/adtsenc.c | 2 +- > libavformat/isom.c| 4 ++-- > libavformat/latmenc.c | 2 +- > libavformat/matroskaenc.c | 3 +-- > 4 files changed, 5 insertions(+), 6 deletions(-) > > diff -

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/mpeg4audio: add a logging context parameter to avpriv_mpeg4audio_get_config()

2019-09-23 Thread myp...@gmail.com
On Sat, Sep 21, 2019 at 11:53 PM James Almer wrote: > > This is an ABI change, so it's scheduled for the next bump. > > Signed-off-by: James Almer > --- > libavcodec/aacdec_template.c | 2 +- > libavcodec/alsdec.c| 4 > libavcodec/mpeg4audio.c| 11 +++

[FFmpeg-devel] [PATCH v1] avcodec/magicyuv: remove duplicate code

2019-09-23 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/magicyuv.c | 30 ++ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index f4fb2a7809..21a32785bc 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 1/2] avfilter/dnn: add DLT prefix for enum DNNLayerType to avoid potential conflicts

2019-09-23 Thread Guo, Yejun
and also change CONV to DLT_CONV2D for better description Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 25 +++-- libavfilter/dnn/dnn_backend_native.h | 12 +++- libavfilter/dnn/dnn_backend_tf.c | 10 +- 3 files changed, 27 insertion

[FFmpeg-devel] [PATCH 2/2] avfilter/dnn: unify the layer execution function in native mode

2019-09-23 Thread Guo, Yejun
with this change, the code will be simpler when more layers supported. Signed-off-by: Guo, Yejun --- libavfilter/dnn/dnn_backend_native.c | 38 -- libavfilter/dnn/dnn_backend_native_layer_conv2d.c | 4 ++- libavfilter/dnn/dnn_backend_native_layer_conv2d.h |

Re: [FFmpeg-devel] [PATCH v1 1/4] avfilter/vf_framerate: add flags none to disable scene change detection if necessary

2019-09-23 Thread Limin Wang
On Mon, Sep 23, 2019 at 11:18:01PM +0200, Marton Balint wrote: > > > On Mon, 23 Sep 2019, Limin Wang wrote: > > >On Sun, Sep 22, 2019 at 08:54:36PM +0200, Marton Balint wrote: > >> > >> > >>On Sat, 21 Sep 2019, lance.lmw...@gmail.com wrote: > >> > >>>From: Limin Wang > >>> > >>>Signed-off-by: L

Re: [FFmpeg-devel] [PATCH] avcodec/bsf: check that AVBSFInternal was allocated before dereferencing it

2019-09-23 Thread James Almer
On 9/23/2019 5:16 AM, Paul B Mahol wrote: > lgtm > > On 9/23/19, James Almer wrote: >> This can happen when av_bsf_free() is called on av_bsf_alloc() failure. >> >> Signed-off-by: James Almer >> --- >> libavcodec/bsf.c | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git

[FFmpeg-devel] [PATCH 2/3] avcodec/truemotion1: Check that the input has enough space for a minimal index_stream

2019-09-23 Thread Michael Niedermayer
Fixes: Timeout (18sec -> 0.4sec) Fixes: 17585/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION1_fuzzer-5117015135617024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/truemotion1.

[FFmpeg-devel] [PATCH 1/3] avcodec/adpcm: Check number of channels for MTAF

2019-09-23 Thread Michael Niedermayer
Fixes: out of array access Fixes: 17608/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_MTAF_fuzzer-5074936267276288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/adpcm.c | 4 1

[FFmpeg-devel] [PATCH 3/3] avcodec/ituh263dec: Check input for minimal frame size

2019-09-23 Thread Michael Niedermayer
Fixes: Timeout (28sec -> 3sec) Fixes: 17559/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H263_fuzzer-5681050776240128 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/ituh263dec.c | 5

Re: [FFmpeg-devel] [PATCH v1 1/4] avfilter/vf_framerate: add flags none to disable scene change detection if necessary

2019-09-23 Thread Marton Balint
On Mon, 23 Sep 2019, Limin Wang wrote: On Sun, Sep 22, 2019 at 08:54:36PM +0200, Marton Balint wrote: On Sat, 21 Sep 2019, lance.lmw...@gmail.com wrote: >From: Limin Wang > >Signed-off-by: Limin Wang >--- >doc/filters.texi | 2 ++ >libavfilter/vf_framerate.c | 17 +++---

Re: [FFmpeg-devel] [PATCH] avformat/hashenc: fix incorrect use of av_mallocz_array()

2019-09-23 Thread Michael Niedermayer
On Sun, Sep 22, 2019 at 02:24:11PM +0200, Moritz Barsnick wrote: > Fixes CID 1453867, CID 1453866, CID 1453865. > > Signed-off-by: Moritz Barsnick > --- > libavformat/hashenc.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) will apply thx [...] -- Michael GnuPG fingerprint

[FFmpeg-devel] [PATCH 1/5] API: add AV_PKT_DATA_ICC_PROFILE to AVPacketSideDataType

2019-09-23 Thread vectronic
Signed-off-by: vectronic --- libavcodec/avcodec.h | 6 ++ libavcodec/avpacket.c | 1 + libavcodec/decode.c | 1 + libavformat/dump.c| 3 +++ 4 files changed, 11 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index c91ee4af5b..7d341f85a6 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 4/5] avformat/mov: whitespace indent

2019-09-23 Thread vectronic
Signed-off-by: vectronic --- libavformat/mov.c | 52 +++ 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index b0331d3c96..af1227c89e 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1573,3

[FFmpeg-devel] [PATCH 5/5] avformat/movenc: add ICC profile support to colr atom. If 'write_colr' movflag is set, then movflag 'prefer_icc' can be used to first look for an AV_PKT_DATA_ICC_PROFILE ent

2019-09-23 Thread vectronic
Signed-off-by: vectronic --- libavformat/movenc.c | 23 +-- libavformat/movenc.h | 1 + 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index c824ff5ba1..390dd64e2b 100644 --- a/libavformat/movenc.c +++ b/libavformat

[FFmpeg-devel] [PATCH 3/5] avformat/mov: add ICC profile support for colr atom

2019-09-23 Thread vectronic
Signed-off-by: vectronic --- libavformat/mov.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 1533c35a1d..b0331d3c96 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1544,6 +1544,7 @@ static int mov_read_e

[FFmpeg-devel] [PATCH 0/5] adding ICC profile support to MOV decode/encode

2019-09-23 Thread vectronic
As discussed earlier on this mailing list, I needed to implement support for reading and writing ICC profiles which can be stored in MOV/MP4 sample descriptor colour information. The overall changes are: 1. Add a new enum value AVPacketSideDataType.AV_PKT_DATA_ICC_PROFILE. (Not sure if update

[FFmpeg-devel] [PATCH 2/5] DOC: add AV_PKT_DATA_ICC_PROFILE to API changes

2019-09-23 Thread vectronic
Signed-off-by: vectronic --- doc/APIchanges | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index 80558a49c7..7328f24911 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -15,6 +15,9 @@ libavutil: 2017-10-21 API changes, most recent first: +2019-0

Re: [FFmpeg-devel] [PATCH v1] avcodec/exr: cosmetics

2019-09-23 Thread Michael Niedermayer
On Mon, Sep 23, 2019 at 09:31:33PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavcodec/exr.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC7870

[FFmpeg-devel] [PATCH V2] lavf/4xm: fix memory leak in error handing path

2019-09-23 Thread Jun Zhao
From: Jun Zhao need to free the header in error path. Signed-off-by: Jun Zhao --- libavformat/4xm.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index a984fc9..a6101a9 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@

[FFmpeg-devel] [PATCH V1] lavf/dashdec: drop unnecessary check before ff_format_io_close

2019-09-23 Thread Jun Zhao
From: Jun Zhao ff_format_io_close will check the AVIOContext pointer pb, so drop the unnecessary check before ff_format_io_close. Signed-off-by: Jun Zhao --- libavformat/dashdec.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/dashdec.c b/libavf

Re: [FFmpeg-devel] [PATCH v4] libavformat/rtsp: return error if rtsp_hd_out is null instead of crash

2019-09-23 Thread Ross Nicholson
Can this be applied? > On 19 Sep 2019, at 16:14, Ross Nicholson wrote: > > Updated to v4 of patch after learning from Aman Gupta that 'rt' did not need > to be checked in the context of this function. > > Should be good to go now. > >> On Thu, 19 Sep 2019 at 16:12, phunkyfish wrote: >> --- >

[FFmpeg-devel] avcodec/qsv: polling free synchronization

2019-09-23 Thread Orlov, Andrey
Hi all, Please review the change, that fixes high CPU usage on AVC decode (18% -> 9%): https://github.com/andreyor/FFmpeg/commit/21014bcfa3cfa56b993d56c5697167b889228f08 Thanks, Orlov, Andrey Joint Stock Company Intel A/O Regi

[FFmpeg-devel] [PATCH v1] avcodec/exr: cosmetics

2019-09-23 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/exr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 0f8b0fda9f..c12469cc28 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -1861,7 +1861,8 @@ static av_cold int de

Re: [FFmpeg-devel] [PATCH v4 1/4] hevc_mp4toannexb: Insert correct parameter sets before IRAP

2019-09-23 Thread Andriy Gelman
On Wed, 18. Sep 15:31, Andriy Gelman wrote: > From: Andriy Gelman > > Fixes #7799 > > Currently, the mp4toannexb filter always inserts the same extradata at > the start of the first IRAP unit. As in ticket #7799, this can lead to > decoding errors if modified parameter sets are signalled in-band

Re: [FFmpeg-devel] [PATCH V3 2/2] avformat/dashdec: fix segfault when parsing segmentlist

2019-09-23 Thread vectronic
> On 16 Sep 2019, at 11:44, vectronic wrote: > > index into segmentlists_tab was specified as 4 instead of 3 causing invalid > access > > further fix to: 8135 > > Signed-off-by: vectronic > --- > libavformat/dashdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/li

Re: [FFmpeg-devel] [PATCH v2] Add RTMFP support with librtmfp library

2019-09-23 Thread Radsl
On 9/23/2019 2:34 AM, live-school support wrote: Thomas Jammet Mon, 10 Jun 2019 05:51:05 -0700 Hi all, In attachmen

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/dxv: Check op_offset in both directions

2019-09-23 Thread Paul B Mahol
Feel free to apply this patch as it does not break current files, but I think check is incomplete. On 9/10/19, Paul B Mahol wrote: > On 9/10/19, Michael Niedermayer wrote: >> On Mon, Sep 09, 2019 at 10:29:14PM +0200, Paul B Mahol wrote: >>> On 9/9/19, Michael Niedermayer wrote: >>> > On Fri, Ju

Re: [FFmpeg-devel] [PATCH] avcodec/bsf: check that AVBSFInternal was allocated before dereferencing it

2019-09-23 Thread Paul B Mahol
lgtm On 9/23/19, James Almer wrote: > This can happen when av_bsf_free() is called on av_bsf_alloc() failure. > > Signed-off-by: James Almer > --- > libavcodec/bsf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c > index 71915dea85

Re: [FFmpeg-devel] [PATCH v1] avcodec/v210enc: add yuv420p/yuv420p10 input pixel format support

2019-09-23 Thread Kieran Kunhya
> > I agree with your guys. Can I submit a patch to remove AV_PIX_FMT_YUV422P, > it's not belong > to v210 encoder also? It make me misunderstanding it's acceptable to add > other format. > Nope, YUV422P is perfectly fine, it's the correct pixel format, there are no conversions from another pixel

[FFmpeg-devel] Update mpegts only handle defined stream_type

2019-09-23 Thread Tin Nguyen
Dear All, Previous week, I faced with the issue when work with .ts container file. The problem is ffmpeg always recognize 1 stream is mp3 stream, but look like it's not mp3 stream. Trace log below: [mpegts @ 0x7ff286800400] stream=2 stream_type=f1 pid=1001 prog_reg_desc= .. Probing mp3 score: