Re: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based encoding

2018-12-19 Thread Guo, Yejun
aks for review, thanks. > -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Guo, Yejun > Sent: Thursday, December 13, 2018 12:26 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH 1/2] add support for ROI-based encoding > > This

[FFmpeg-devel] [PATCH v2] avcodec/mips: Fix failed case: hevc-conformance-AMP_A_Samsung_* when enable msa

2018-12-19 Thread gxw
The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is still 32 in function ff_hevc_sao_edge_filter_8_msa. So, use AV_INPUT_BUFFER_PADDING_SIZE directly. Fate tests passed. --- libavcodec/mips/hevc_lpf_sao_msa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Re: [FFmpeg-devel] [PATCH] avcodec/mips: [loongson] fix failed case: hevc-conformance-AMP_A_Samsung_* in loongson2k

2018-12-19 Thread 顾希伟
> 2018-12-18 2:15 GMT+01:00, gxw : > > The AV_INPUT_BUFFER_PADDING_SIZE has been increased to 64, but the value is > > still 32 > > in function ff_hevc_sao_edge_filter_8_msa. So, Modify the corresponding > > value to 64. > > Fate tests passed. > > --- > > libavcodec/mips/hevc_lpf_sao_msa.c | 2 +-

Re: [FFmpeg-devel] [PATCH 3/3] configure: make --windres option work

2018-12-19 Thread James Almer
On 12/19/2018 9:51 PM, Peter Ross wrote: > this option is described by --help, but the definition was missing in > CMDLINE_SET. > --- > > configure | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configure b/configure > index 417fc470eb..6cbd642943 100755 > --- a/configure > +++ b/conf

Re: [FFmpeg-devel] [PATCH 2/3] configure: --help should display --host-extralibs

2018-12-19 Thread Carl Eugen Hoyos
2018-12-20 1:49 GMT+01:00, Peter Ross : > --- > (--host-libs is not defined in code, and does not work) > > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index 7136f22395..2f35741aca 100755 > --- a/configure > +++ b/configure > @@ -380,7

[FFmpeg-devel] [PATCH 3/3] configure: make --windres option work

2018-12-19 Thread Peter Ross
this option is described by --help, but the definition was missing in CMDLINE_SET. --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 417fc470eb..6cbd642943 100755 --- a/configure +++ b/configure @@ -2437,6 +2437,7 @@ CMDLINE_SET=" tempprefix

[FFmpeg-devel] [PATCH 2/3] configure: --help should display --host-extralibs

2018-12-19 Thread Peter Ross
--- (--host-libs is not defined in code, and does not work) configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 7136f22395..2f35741aca 100755 --- a/configure +++ b/configure @@ -380,7 +380,7 @@ Toolchain options: --host-cppflags=HCPPFLAGS u

Re: [FFmpeg-devel] [PATCH 1/3] configure: --help typo

2018-12-19 Thread Carl Eugen Hoyos
2018-12-20 1:42 GMT+01:00, Peter Ross : > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index be49c19b88..7136f22395 100755 > --- a/configure > +++ b/configure > @@ -473,7 +473,7 @@ Developer options (useful when working on FFmpeg

[FFmpeg-devel] [PATCH 1/3] configure: --help typo

2018-12-19 Thread Peter Ross
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index be49c19b88..7136f22395 100755 --- a/configure +++ b/configure @@ -473,7 +473,7 @@ Developer options (useful when working on FFmpeg itself): --random-seed=VALUE seed value for --ena

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread Michael Niedermayer
On Wed, Dec 19, 2018 at 09:35:28PM +0100, Paul B Mahol wrote: > On 12/19/18, Michael Niedermayer wrote: > > On Tue, Dec 18, 2018 at 10:55:16PM +0100, Paul B Mahol wrote: > >> On 12/18/18, Michael Niedermayer wrote: > >> > On Tue, Dec 18, 2018 at 02:56:54PM +0100, Paul B Mahol wrote: > >> >> Signe

[FFmpeg-devel] [PATCH]lavf/img2dec: Autodetect Photo CD images

2018-12-19 Thread Carl Eugen Hoyos
Hi! Attached patch depends on Paul's PhotoCD decoder. Please comment, Carl Eugen From b7247956162c8104ba8bef90ea85e2fc3578b643 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Thu, 20 Dec 2018 00:58:47 +0100 Subject: [PATCH] lavf/img2dec: Auto-detect Kodak Photo CD image files. --- libavf

[FFmpeg-devel] [PATCH] libavformat/mov: Fix NULL-dereference read for some encrypted content.

2018-12-19 Thread Jacob Trimble
When reading frames, we need to use the fragment for the correct stream. Sometimes the "current" fragment is not the same as the one the frame is for. Found by Chromium's ClusterFuzz: https://crbug.com/906392 and https://crbug.com/915524 Signed-off-by: Jacob Trimble --- libavformat/mov.c | 6 +

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add photocd decoder

2018-12-19 Thread Carl Eugen Hoyos
2018-12-19 21:32 GMT+01:00, Paul B Mahol : > +static av_cold int photocd_decode_init(AVCodecContext *avctx) > +{ > +avctx->pix_fmt= AV_PIX_FMT_YUV420P; I very much welcome this patch but it appears that the colourspace conversion is missing that was part of the original patchset=-( Carl

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add photocd decoder

2018-12-19 Thread Peter Ross
On Wed, Dec 19, 2018 at 09:32:03PM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 1 + > libavcodec/avcodec.h| 1 + > libavcodec/codec_desc.c | 7 + > libavcodec/photocd.c| 445 +++

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread James Zern
On Wed, Dec 19, 2018 at 2:03 PM James Almer wrote: > > On 12/19/2018 6:52 PM, Rene Claus wrote: > > This commit adds configuration options to libvpxenc.c that can be used to > > tune the sharpness parameter for VP8 and VP9. > > > > Signed-off-by: Rene Claus > > --- > > doc/encoders.texi | 4

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread Rene Claus
Yes, setting it to zero is the same as not setting it at all. I'll look into updating vp8cx.h On Wed, Dec 19, 2018 at 2:03 PM James Almer wrote: > On 12/19/2018 6:52 PM, Rene Claus wrote: > > This commit adds configuration options to libvpxenc.c that can be used to > > tune the sharpness paramet

[FFmpeg-devel] [PATCH 3/4] zmbvenc: Prevent memory/math overflows in block_cmp()

2018-12-19 Thread matthew . w . fearnley
From: Matthew Fearnley score_tab[] was only declared/initialised for elements 0..255, but with block sizes set to 16*16, it was possible to reach 256. This limit could also be overflowed in the histogram, because it was declared with a uint8_t type. This can be fixed, and also allow different Z

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread James Almer
On 12/19/2018 6:52 PM, Rene Claus wrote: > This commit adds configuration options to libvpxenc.c that can be used to > tune the sharpness parameter for VP8 and VP9. > > Signed-off-by: Rene Claus > --- > doc/encoders.texi | 4 > libavcodec/libvpxenc.c | 6 ++ > 2 files changed, 10 i

[FFmpeg-devel] [PATCH 4/4] zmbvenc: use unsigned values for score calculations

2018-12-19 Thread matthew . w . fearnley
From: Matthew Fearnley All the values in score_tab are positive or 0, and so should be the sum returned by block_cmp(). The logic in zmbv_me() assumes that all 'bv' values will be non-negative, in order to guarantee an early return if ever bv==0. --- libavcodec/zmbvenc.c | 7 --- 1 file cha

[FFmpeg-devel] [PATCH 2/4] zmbvenc: ensure mx, my, xored are always set together in zmbv_me()

2018-12-19 Thread matthew . w . fearnley
From: Matthew Fearnley Store the value of *xored computed within block_cmp() in a local variable, and only update the *xored parameter at the same time as *mx,*my are set. This ensures that the value of *xored is accurate for the value of *mx,*my whenever the function ends. Note that the local v

[FFmpeg-devel] [PATCH 1/4] zmbvenc: don't sum the entropy when blocks are equal

2018-12-19 Thread matthew . w . fearnley
From: Matthew Fearnley If *xored is 0, then histogram[0]==bw*bh and histogram[1..255]==0. Because histogram[0] is skipped over for the entropy calculation, the return value is always 0 when *xored==0, so we don't need to waste time calculating it. This addition both clarifies the behaviour of t

[FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread Rene Claus
This commit adds configuration options to libvpxenc.c that can be used to tune the sharpness parameter for VP8 and VP9. Signed-off-by: Rene Claus --- doc/encoders.texi | 4 libavcodec/libvpxenc.c | 6 ++ 2 files changed, 10 insertions(+) diff --git a/doc/encoders.texi b/doc/encode

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread Moritz Barsnick
On Wed, Dec 19, 2018 at 10:24:29 -0800, Rene Claus wrote: > +if (ctx->sharpness >= 0) Can this ever be untrue? Because: > +{ "sharpness", "Sharpness", OFFSET(sharpness), AV_OPT_TYPE_INT, > {.i64 = 0}, 0, 7, VE},

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread James Almer
On 12/19/2018 5:57 PM, Paul B Mahol wrote: > On 12/19/18, James Almer wrote: >> On 12/18/2018 10:56 AM, Paul B Mahol wrote: >>> Signed-off-by: Paul B Mahol >>> --- >>> libavformat/nut.h| 3 + >>> libavformat/nutenc.c | 130 +-- >>> 2 files changed, 1

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread Paul B Mahol
On 12/19/18, James Almer wrote: > On 12/18/2018 10:56 AM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavformat/nut.h| 3 + >> libavformat/nutenc.c | 130 +-- >> 2 files changed, 129 insertions(+), 4 deletions(-) >> >> diff --git a

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread James Almer
On 12/18/2018 10:56 AM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavformat/nut.h| 3 + > libavformat/nutenc.c | 130 +-- > 2 files changed, 129 insertions(+), 4 deletions(-) > > diff --git a/libavformat/nut.h b/libavformat/nut.h >

[FFmpeg-devel] [PATCH 2/2] avformat/img2: add Photo CD

2018-12-19 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/img2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/img2.c b/libavformat/img2.c index 8432cc0955..2db4290126 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -53,6 +53,7 @@ const IdStrMap ff_img_tags[] = { { AV_CODEC_I

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread Paul B Mahol
On 12/19/18, Michael Niedermayer wrote: > On Tue, Dec 18, 2018 at 10:55:16PM +0100, Paul B Mahol wrote: >> On 12/18/18, Michael Niedermayer wrote: >> > On Tue, Dec 18, 2018 at 02:56:54PM +0100, Paul B Mahol wrote: >> >> Signed-off-by: Paul B Mahol >> >> --- >> >> libavformat/nut.h| 3 + >>

[FFmpeg-devel] [PATCH 1/2] avcodec: add photocd decoder

2018-12-19 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 + libavcodec/photocd.c| 445 5 files changed, 455 insertions(+) create mode 100644 libavc

Re: [FFmpeg-devel] [PATCH] libavcodec/zmbvenc.c: don't allow motion estimation out of range.

2018-12-19 Thread Matthew Fearnley
Hi, Just to say, after further reviewing the logic in zmbv_me() and block_cmp(), I think it all tenuously holds together, with no possibilities of incorrect xored values or undefined behaviour. But it is quite fragile. I’m planning some patches to strengthen/clarify the logic, and to make it mor

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: unset DTS/PTS for subtitle PES packets if PCR not available

2018-12-19 Thread Jan Ekström
On Wed, Dec 19, 2018 at 8:56 PM Michael Niedermayer wrote: > > On Sat, Dec 15, 2018 at 08:50:41PM +0200, Jan Ekström wrote: > > Fixes issues when a subtitle packet is received before PCR for the > > program has been received, leading to wildly jumping timestamps > > on the lavf client side as well

Re: [FFmpeg-devel] [PATCH] Add HDR dynamic metadata struct (for SMPTE 2094-40) to libavutil.

2018-12-19 Thread Vittorio Giovara
On Wed, Dec 19, 2018 at 7:08 PM Mohammad Izadi wrote: > From: Mohammad Izadi > > The dynamic metadata contains data for color volume transform - > application 4 of SMPTE 2094-40:2016 standard. The data comes from HEVC in > the SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35. > > I'll add support to HEVC

Re: [FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread James Zern
On Wed, Dec 19, 2018 at 10:24 AM Rene Claus wrote: > > This commit adds configuration options to libvpxenc.c that can be used to > tune the sharpness parameter of the loop filter for VP8 and VP9. > > Signed-off-by: Rene Claus > --- > doc/encoders.texi | 4 > libavcodec/libvpxenc.c | 5

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: unset DTS/PTS for subtitle PES packets if PCR not available

2018-12-19 Thread Michael Niedermayer
On Sat, Dec 15, 2018 at 08:50:41PM +0200, Jan Ekström wrote: > Fixes issues when a subtitle packet is received before PCR for the > program has been received, leading to wildly jumping timestamps > on the lavf client side as well as in the re-ordering logic. > > This usually happens in case of mul

Re: [FFmpeg-devel] [PATCH] fix infinite loop for ff_rtsp_connect when failure of connection after redirection

2018-12-19 Thread Michael Niedermayer
On Tue, Dec 18, 2018 at 01:26:35PM -0800, tianhu yang wrote: > --- > libavformat/rtsp.c | 1 + > 1 file changed, 1 insertion(+) how can the bug be reproduced ? thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The greatest way to live with honor in this worl

Re: [FFmpeg-devel] [PATCH] Fix unnecessary buffer reallocotion in ffio_ensure_seekback().

2018-12-19 Thread Michael Niedermayer
On Wed, Dec 19, 2018 at 02:33:49PM +0200, Artyom Lebedev wrote: > It was reallocated even if the exisiting buffer is larger than needed one, > thus unnecessary shrinking it. > aviobuf.c |3 +++ > 1 file changed, 3 insertions(+) > 17a6a27b38d8fc7336d7177338b915b507a69033 > 0001-Fix-unnecessa

Re: [FFmpeg-devel] [PATCH] libavcodec/libaomenc: fix breakage from upstream

2018-12-19 Thread James Almer
On 12/19/2018 2:13 PM, Helmut K. C. Tessarek wrote: > commit > https://aomedia.googlesource.com/aom/+/4667aa1a373566e9c124afcd58c71731ab0d7377 > changed parts of the code that broke compilation of libavcodec/libaomenc.c > --- > libavcodec/libaomenc.c | 9 +++-- > 1 file changed, 7 insertions(

[FFmpeg-devel] [PATCH] avcodec/libvpxenc: add VP8/9 sharpness config option

2018-12-19 Thread Rene Claus
This commit adds configuration options to libvpxenc.c that can be used to tune the sharpness parameter of the loop filter for VP8 and VP9. Signed-off-by: Rene Claus --- doc/encoders.texi | 4 libavcodec/libvpxenc.c | 5 + 2 files changed, 9 insertions(+) diff --git a/doc/encoders.

[FFmpeg-devel] [PATCH] Add HDR dynamic metadata struct (for SMPTE 2094-40) to libavutil.

2018-12-19 Thread Mohammad Izadi
From: Mohammad Izadi The dynamic metadata contains data for color volume transform - application 4 of SMPTE 2094-40:2016 standard. The data comes from HEVC in the SEI_TYPE_USER_DATA_REGISTERED_ITU_T_T35. I'll add support to HEVC in a follow-up. --- libavutil/Makefile | 2 + li

Re: [FFmpeg-devel] [PATCH] libavcodec/libaomenc: fix breakage from upstream

2018-12-19 Thread Helmut K. C. Tessarek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 2018-12-19 17:28, James Almer wrote: > This will break compilation with libaom 1.0.0 because it wasn't > typedefed before this change. You will need to use an #ifdef > UENUM1BYTE check or similar to choose one line or the other. Yep, an ifdef

[FFmpeg-devel] [PATCH] libavcodec/libaomenc: fix breakage from upstream

2018-12-19 Thread Helmut K. C. Tessarek
commit https://aomedia.googlesource.com/aom/+/4667aa1a373566e9c124afcd58c71731ab0d7377 changed parts of the code that broke compilation of libavcodec/libaomenc.c --- libavcodec/libaomenc.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavc

Re: [FFmpeg-devel] [PATCH] libavcodec/libaomenc: fix breakage from upstream

2018-12-19 Thread James Almer
On 12/19/2018 1:03 PM, Helmut K. C. Tessarek wrote: > commit > https://aomedia.googlesource.com/aom/+/4667aa1a373566e9c124afcd58c71731ab0d7377 > changed parts of the code that broke compilation of libavcodec/libaomenc.c > --- > libavcodec/libaomenc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

Re: [FFmpeg-devel] [PATCH v3] Fix usage of temp_file flag in hls_flags option

2018-12-19 Thread Aleksey Skripka
All my tests ok. Thank you, Adrian. > On 19 Dec 2018, at 12:41, Adrian wrote: > > Okay, so given you two have some valid points, I've combined both and ended > up with final version of the patch: > - it uses temp file for playlist when either a flag is specified or playlist > type is anything

[FFmpeg-devel] [PATCH] libavcodec/libaomenc: fix breakage from upstream

2018-12-19 Thread Helmut K. C. Tessarek
commit https://aomedia.googlesource.com/aom/+/4667aa1a373566e9c124afcd58c71731ab0d7377 changed parts of the code that broke compilation of libavcodec/libaomenc.c --- libavcodec/libaomenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libaomenc.c b/libavcodec/

Re: [FFmpeg-devel] [PATCH v3] Fix usage of temp_file flag in hls_flags option

2018-12-19 Thread Ronak
> On Dec 19, 2018, at 4:41 AM, Adrian wrote: > > Okay, so given you two have some valid points, I've combined both and ended > up with final version of the patch: > - it uses temp file for playlist when either a flag is specified or playlist > type is anything other than VOD > - it does not u

Re: [FFmpeg-devel] [PATCH 1/2] avformat/nutenc: fix duration estimation by writing EOR packets

2018-12-19 Thread Michael Niedermayer
On Tue, Dec 18, 2018 at 10:55:16PM +0100, Paul B Mahol wrote: > On 12/18/18, Michael Niedermayer wrote: > > On Tue, Dec 18, 2018 at 02:56:54PM +0100, Paul B Mahol wrote: > >> Signed-off-by: Paul B Mahol > >> --- > >> libavformat/nut.h| 3 + > >> libavformat/nutenc.c | 130 +

Re: [FFmpeg-devel] [PATCH]lsws/utils: Split "emms_c(); " call in two lines

2018-12-19 Thread Carl Eugen Hoyos
2018-12-17 20:43 GMT+01:00, Carl Eugen Hoyos : > 2018-12-17 16:45 GMT+01:00, Nicolas George : >> Carl Eugen Hoyos (2018-12-17): >>> #ifndef emms_c >>> -# define emms_c() while(0) >>> +# define emms_c() while(0){} >>> #endif >> >> That feels really wrong, or at least completely unusual. But no

Re: [FFmpeg-devel] [PATCH]lavc/opus_rc: Case a const pointer to uint8_t *

2018-12-19 Thread Carl Eugen Hoyos
2018-12-17 2:47 GMT+01:00, Carl Eugen Hoyos : > The Opus struct RawBitsContext is used in both the decoder and the encoder. > The fact that *position is const avoids warnings in the decoder where > it points into the bitstream. The encoder writes into the same > pointer, attached cast silences the

Re: [FFmpeg-devel] [PATCH] Fix buffer resizing after probe done.

2018-12-19 Thread Carl Eugen Hoyos
2018-12-19 13:40 GMT+01:00, Artyom Lebedev : > I have this assert fired after probing done How can we reproduce the assertion failure? In general, fixing the crash and (potentially) removing the assert() should be two different things. Carl Eugen ___ f

Re: [FFmpeg-devel] [PATCH V6] libavfilter: add transpose_vaapi filter

2018-12-19 Thread Li, Zhong
> From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Zachary Zhou > Sent: Tuesday, December 18, 2018 5:55 PM > To: ffmpeg-devel@ffmpeg.org > Cc: Zhou, Zachary > Subject: [FFmpeg-devel] [PATCH V6] libavfilter: add transpose_vaapi filter > > Swap width and height when do clo

Re: [FFmpeg-devel] [PATCH]lavc/opus_rc: Case a const pointer to uint8_t *

2018-12-19 Thread Nicolas George
Paul B Mahol (2018-12-17): > Yes, it is poc - patch of crap. Please refrain from using that language. -- Nicolas George signature.asc Description: Digital signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/lis

[FFmpeg-devel] [PATCH] Fix buffer resizing after probe done.

2018-12-19 Thread Artyom Lebedev
I have this assert fired after probing done and frames are normally read: "av_assert0(len >= s->orig_buffer_size);". Buffer size after probing ended up with ~5MB, orig_buffer_size was 64K. This place looks like total mess, it definitely has a bug with incorrect len modification even if buffer w

[FFmpeg-devel] [PATCH] Fix unnecessary buffer reallocotion in ffio_ensure_seekback().

2018-12-19 Thread Artyom Lebedev
It was reallocated even if the exisiting buffer is larger than needed one, thus unnecessary shrinking it. >From 2b8cea72a69abe6564367fb2149be936d2ffb916 Mon Sep 17 00:00:00 2001 From: Artyom Lebedev Date: Wed, 19 Dec 2018 11:49:22 +0200 Subject: [PATCH] Fix unnecessary buffer reallocotion in ffi

Re: [FFmpeg-devel] [PATCH] avformat: add vividas demuxer

2018-12-19 Thread Tomas Härdin
tis 2018-12-18 klockan 22:58 +0100 skrev Paul B Mahol: > > On 12/18/18, Tomas Härdin wrote: > > sön 2018-12-16 klockan 22:28 +0100 skrev Paul B Mahol: > > > > > > > > > > +static void track_header(VividasDemuxContext *viv, AVFormatContext > > > *s,  uint8_t *buf, int size) > > > +{ > > > +[...]

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/rpza: Move frame allocation to a later point

2018-12-19 Thread Michael Niedermayer
On Sun, Dec 16, 2018 at 09:43:05PM +0100, Michael Niedermayer wrote: > This will allow performing some fast checks before the slow allocation > > Signed-off-by: Michael Niedermayer > --- > libavcodec/rpza.c | 14 -- > 1 file changed, 8 insertions(+), 6 deletions(-) will apply [...]

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/rpza: Check that there is enough data for all the blocks

2018-12-19 Thread Michael Niedermayer
On Sun, Dec 16, 2018 at 09:43:06PM +0100, Michael Niedermayer wrote: > Fixes: Timeout > Fixes: > 11547/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RPZA_fuzzer-5678435842654208 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed

Re: [FFmpeg-devel] [PATCH] Add HDR dynamic metadata struct (for SPMTE 2094-40) to libavutil.

2018-12-19 Thread Moritz Barsnick
On Tue, Dec 18, 2018 at 13:41:06 -0800, Mohammad Izadi wrote: Nit: > #define LIBAVUTIL_VERSION_MAJOR 56 > -#define LIBAVUTIL_VERSION_MINOR 24 > +#define LIBAVUTIL_VERSION_MINOR 25 > #define LIBAVUTIL_VERSION_MICRO 101 When bumping minor, you need to reset micro to 100. Moritz _

Re: [FFmpeg-devel] [PATCH 1/3] avformat/mpegts: Fix side data type for stream id

2018-12-19 Thread Michael Niedermayer
On Fri, Dec 07, 2018 at 11:57:48PM +0100, Michael Niedermayer wrote: > Signed-off-by: Michael Niedermayer > --- > libavformat/mpegts.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) will apply patchset [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB N

Re: [FFmpeg-devel] [PATCH] tests/fate/filter-video: increase fuzz for fate-filter-refcmp-psnr-rgb

2018-12-19 Thread Michael Niedermayer
On Fri, Dec 07, 2018 at 01:01:09AM +0100, Michael Niedermayer wrote: > On Thu, Dec 06, 2018 at 10:42:24PM +0100, Carl Eugen Hoyos wrote: > > 2018-12-06 22:41 GMT+01:00, Carl Eugen Hoyos : > > > 2018-12-06 22:19 GMT+01:00, Michael Niedermayer : > > >> Fixes: test failure on powerpc > > >> > > >> Sig

[FFmpeg-devel] [PATCH v3] Fix usage of temp_file flag in hls_flags option

2018-12-19 Thread Adrian
Okay, so given you two have some valid points, I've combined both and ended up with final version of the patch: - it uses temp file for playlist when either a flag is specified or playlist type is anything other than VOD - it does not use temp file for HLS_SINGLE_FILE in place mentioned by Aleks

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/rangecoder: factorize termination version code

2018-12-19 Thread Jerome Martinez
On 19/12/2018 02:40, Michael Niedermayer wrote: Signed-off-by: Michael Niedermayer --- libavcodec/ffv1enc.c | 10 +++--- libavcodec/rangecoder.c | 4 +++- libavcodec/rangecoder.h | 2 +- libavcodec/snowenc.c | 2 +- libavcodec/sonic.c| 2 +-

Re: [FFmpeg-devel] [PATCH 1/3] doc/encoders: Fix colums typo

2018-12-19 Thread Michael Niedermayer
On Tue, Dec 18, 2018 at 03:11:12PM +0100, Paul B Mahol wrote: > On 12/18/18, Michael Niedermayer wrote: > > Signed-off-by: Michael Niedermayer > > --- > > doc/encoders.texi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > Patch set LGTM. will apply thx [...] -- Michael

Re: [FFmpeg-devel] [PATCH] avcodec: add g732_1 parser

2018-12-19 Thread Paul B Mahol
On 12/18/18, James Almer wrote: > On 12/18/2018 5:05 PM, Paul B Mahol wrote: >> Signed-off-by: Paul B Mahol >> --- >> libavcodec/Makefile| 1 + >> libavcodec/g723_1_parser.c | 60 ++ >> libavcodec/parsers.c | 1 + >> libavcodec/utils.c

Re: [FFmpeg-devel] [PATCH] lavfi/tonemap_opencl: reuse matrix calculation from vf_colorspace

2018-12-19 Thread Song, Ruiling
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Song, Ruiling > Sent: Tuesday, December 4, 2018 3:33 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] lavfi/tonemap_opencl: reuse matrix > calculatio