Re: [FFmpeg-devel] [PATCH v4] Improved the performance of 1 decode + N filter graphs and adaptive bitrate.

2019-02-12 Thread Wang, Shaofei
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of > Mark Thompson > Sent: Tuesday, February 12, 2019 8:18 AM It should be UTC time when received the email > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v4] Improved the

Re: [FFmpeg-devel] SDR->HDR tone mapping algorithm?

2019-02-12 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Harish Krupo > Sent: Friday, February 08, 2019 4:17 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Cc: Strasser, Kevin ; Palli, Tapani > ; Sharma, Shashank >

Re: [FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Hendrik Leppkes
On Wed, Feb 13, 2019 at 2:57 AM Carl Eugen Hoyos wrote: > > 2019-02-13 0:47 GMT+01:00, Hendrik Leppkes : > > On Tue, Feb 12, 2019 at 12:54 PM Carl Eugen Hoyos > > wrote: > >> > >> 2019-02-12 12:37 GMT+01:00, Hendrik Leppkes : > >> > On Tue, Feb 12, 2019 at 12:28 PM Carl Eugen Hoyos > >> >

Re: [FFmpeg-devel] [PATCH v3 01/12] vaapi_encode: Support more RC modes

2019-02-12 Thread Carl Eugen Hoyos
2019-02-10 20:46 GMT+01:00, Mark Thompson : > Allow setting the mode explicitly, and try to make a sensible choice > given the available parameters if not. Please mention ticket #7650 if this patch fixes the assertion failure. Thank you, Carl Eugen ___

Re: [FFmpeg-devel] [PATCH, v4] lavc/hevc_parser: cope with more leading_zero_8bits and update FATE

2019-02-12 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Fu, Linjie > Sent: Monday, January 14, 2019 09:08 > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH, v4] lavc/hevc_parser: cope with more

Re: [FFmpeg-devel] [PATCH v3 01/12] vaapi_encode: Support more RC modes

2019-02-12 Thread myp...@gmail.com
On Mon, Feb 11, 2019 at 3:47 AM Mark Thompson wrote: > > Allow setting the mode explicitly, and try to make a sensible choice > given the available parameters if not. > --- > doc/encoders.texi | 24 +++ > libavcodec/vaapi_encode.c | 382 +++--- >

[FFmpeg-devel] [PATCH] lavc/qsvdec: reinit if the resolution changes little

2019-02-12 Thread Linjie Fu
Currently, resolution change detection is based on 16 alignment, small resolution changes (same after FFALIGN 16) in coded width or coded height will not trigger the reinit and will lead to a decode failure. Modify to use last_coded_width and last_coded_height to detect the small resolution

Re: [FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Carl Eugen Hoyos
2019-02-13 0:47 GMT+01:00, Hendrik Leppkes : > On Tue, Feb 12, 2019 at 12:54 PM Carl Eugen Hoyos > wrote: >> >> 2019-02-12 12:37 GMT+01:00, Hendrik Leppkes : >> > On Tue, Feb 12, 2019 at 12:28 PM Carl Eugen Hoyos >> > wrote: >> >> >> >> Hi! >> >> >> >> Attached patch intends to fix ticket #7731.

Re: [FFmpeg-devel] [PATCH V3] tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/pts

2019-02-12 Thread myp...@gmail.com
On Tue, Feb 12, 2019 at 9:27 PM Michael Niedermayer wrote: > > On Tue, Feb 12, 2019 at 02:31:20PM +0800, Jun Zhao wrote: > > Use av_ts2str() for AVFrame.pkt_dts/pts to avoid print the > > pkt_dts/pts as negative number like: > > "0,3616613, -9223372036854775808, 1001, 3110400,

[FFmpeg-devel] [PATCH] MAINTAINERS: add myself for tonemap_opencl

2019-02-12 Thread Ruiling Song
Signed-off-by: Ruiling Song --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7ac2d22..412a739 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -362,6 +362,7 @@ Filters: vf_ssim.c Paul B Mahol vf_stereo3d.c

[FFmpeg-devel] [PATCH 2/2] avcodec/htmlsubtitles: Fixes denial of service due to use of sscanf in inner loop for handling braces

2019-02-12 Thread Michael Niedermayer
From: Kevin Backhouse via RT Fixes: [Semmle Security Reports #19439] Fixes: dos_sscanf2.mkv Signed-off-by: Michael Niedermayer --- libavcodec/htmlsubtitles.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/libavcodec/htmlsubtitles.c

[FFmpeg-devel] [PATCH 1/2] avcodec/htmlsubtitles: Fixes denial of service due to use of sscanf in inner loop for tag scaning

2019-02-12 Thread Michael Niedermayer
From: Kevin Backhouse via RT Fixes: [Semmle Security Reports #19438] Fixes: dos_sscanf1.mkv Signed-off-by: Michael Niedermayer --- libavcodec/htmlsubtitles.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/libavcodec/htmlsubtitles.c

Re: [FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Hendrik Leppkes
On Tue, Feb 12, 2019 at 12:54 PM Carl Eugen Hoyos wrote: > > 2019-02-12 12:37 GMT+01:00, Hendrik Leppkes : > > On Tue, Feb 12, 2019 at 12:28 PM Carl Eugen Hoyos > > wrote: > >> > >> Hi! > >> > >> Attached patch intends to fix ticket #7731. > > > > This is not a fix. The vast majority of TrueHD

Re: [FFmpeg-devel] [PATCH] lavf/jacosubdec: compute subtitle duration correctly

2019-02-12 Thread Carl Eugen Hoyos
2019-02-13 0:13 GMT+01:00, Adam Sampson : > When a JACOsub subtitle has two timestamps, they represent its start and > end times (http://unicorn.us.com/jacosub/jscripts.html#l_times); the > duration is the difference between the two, not the sum of the two. > > Tested using MPV, a LaserDisc, and

[FFmpeg-devel] [PATCH] lavf/jacosubdec: compute subtitle duration correctly

2019-02-12 Thread Adam Sampson
When a JACOsub subtitle has two timestamps, they represent its start and end times (http://unicorn.us.com/jacosub/jscripts.html#l_times); the duration is the difference between the two, not the sum of the two. Tested using MPV, a LaserDisc, and some authentic 1993 JACOsub files. ---

[FFmpeg-devel] [PATCH] avformat/mov: Do not use reference stream in mov_read_sidx() if there is no reference stream

2019-02-12 Thread Michael Niedermayer
Fixes: NULL pointer dereference Fixes: clusterfuzz-testcase-minimized-audio_decoder_fuzzer-5634316373721088 Reported-by: Chris Cunningham Reviewed-by: Chris Cunningham Signed-off-by: Michael Niedermayer --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [FFmpeg-devel] [PATCH] configure: fix dependencies for mlp and truehd encoders

2019-02-12 Thread Carl Eugen Hoyos
2019-02-12 17:51 GMT+01:00, Moritz Barsnick : > Signed-off-by: Moritz Barsnick > --- > > Found with a minimal build using "--enable-encoder=truehd" Patch applied. Thank you, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/4] lavc/libaribb24: add error handling to region handling

2019-02-12 Thread Jan Ekström
On Tue, Feb 12, 2019 at 2:16 AM Michael Niedermayer wrote: > > On Mon, Feb 11, 2019 at 03:06:51AM +0200, Jan Ekström wrote: > > Fixes some rather embarrassing mistakes that somehow passed my > > eyes. > > > > * Now catches if memory allocation has failed during bprint usage > > by checking

[FFmpeg-devel] [PATCH] configure: fix dependencies for mlp and truehd encoders

2019-02-12 Thread Moritz Barsnick
Signed-off-by: Moritz Barsnick --- Found with a minimal build using "--enable-encoder=truehd" I reviewed other libavcodec sources makeing use of audio_frame_queue, and their dependencies all seem to include this, but I didn't check which sub- decoders are defined by these source files. (Like

Re: [FFmpeg-devel] SDR->HDR tone mapping algorithm?

2019-02-12 Thread Harish Krupo
Hi Niklas, Thanks a lot for your comments. Please find my reply inline. Niklas Haas writes: > Hi, > > The important thing to consider is what constraints we are trying to > solve. And I think the expected behavior is that an SDR signal in SDR > mode should look identical to an SDR signal in

Re: [FFmpeg-devel] [PATCH V3] tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/pts

2019-02-12 Thread Michael Niedermayer
On Tue, Feb 12, 2019 at 02:31:20PM +0800, Jun Zhao wrote: > Use av_ts2str() for AVFrame.pkt_dts/pts to avoid print the > pkt_dts/pts as negative number like: > "0,3616613, -9223372036854775808, 1001, 3110400, 0x75e37a65" > > Reviewed-by: Michael Niedermayer > Signed-off-by: Jun Zhao >

[FFmpeg-devel] [PATCH]lavc/truehd_core: Initialize the last bytes of the output buffer

2019-02-12 Thread Carl Eugen Hoyos
Hi! The output of truehd_core is currently undeterministic, the last bytes are uninitialized, valgrind protests if less than 8 bytes are initialized. I believe attached patch is simpler than calculating the necessary write size at the bottom of the function. Please comment, Carl Eugen From

Re: [FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Carl Eugen Hoyos
2019-02-12 12:37 GMT+01:00, Hendrik Leppkes : > On Tue, Feb 12, 2019 at 12:28 PM Carl Eugen Hoyos > wrote: >> >> Hi! >> >> Attached patch intends to fix ticket #7731. > > This is not a fix. The vast majority of TrueHD Atmos tracks work just > fine with the current limitations, and would

Re: [FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Hendrik Leppkes
On Tue, Feb 12, 2019 at 12:28 PM Carl Eugen Hoyos wrote: > > Hi! > > Attached patch intends to fix ticket #7731. > This is not a fix. The vast majority of TrueHD Atmos tracks work just fine with the current limitations, and would needlessly drop the Atmos information for every stream. - Hendrik

[FFmpeg-devel] [PATCH]lavf/spdifenc: Automatically insert truehd_core bitstream filter

2019-02-12 Thread Carl Eugen Hoyos
Hi! Attached patch intends to fix ticket #7731. Please comment, Carl Eugen From bf68eb44a9a27ca8c9e832e8f0cbd08a0d0b5281 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 12 Feb 2019 12:15:02 +0100 Subject: [PATCH] lavf/spdifenc: Automatically insert truehd_core bitstream filter.

[FFmpeg-devel] [PATCH] avcodec/mips: [loongson] optimize theora decoding with mmi.

2019-02-12 Thread gxw
Optimize theora decoding with mmi in functions: 1. ff_vp3_idct_add_mmi 2. ff_vp3_idct_put_mmi 3. ff_vp3_idct_dc_add_mmi 4. ff_put_no_rnd_pixels_l2_mmi Theora decoding speed improved about 32%(from 88fps to 116fps, Tested on loongson 3A3000). --- libavcodec/mips/Makefile | 1 +