[FFmpeg-devel] probe mpegps pcm-alaw too long time

2020-04-24 Thread 周巍巍
/** * Remaining size available for raw_packet_buffer, in bytes. */ #define RAW_PACKET_BUFFER_SIZE 250 int raw_packet_buffer_remaining_size; #define MAX_PROBE_PACKETS 2500 st->probe_packets = MAX_PROBE_PACKETS; These two variables cannot be modified by parameters. as follo

Re: [FFmpeg-devel] [PATCH v10 1/2] avcodec: add support for Cunning Developments' ADPCM

2020-04-24 Thread Zane van Iperen
On Fri, 24 Apr 2020 19:41:35 +0200 "Michael Niedermayer" wrote: > On Sat, Apr 18, 2020 at 12:20:39AM +, Zane van Iperen wrote: > > Signed-off-by: Zane van Iperen > > --- > > Changelog | 1 + > > doc/general.texi| 1 + > > libavcodec/Makefile | 1 + > > libavcode

Re: [FFmpeg-devel] [PATCH] avcodec/dirac_vlc: Fix integer overflow in ff_dirac_golomb_read_32bit()

2020-04-24 Thread Lynne
Apr 24, 2020, 23:04 by mich...@niedermayer.cc: > Fixes: left shift of 1073741824 by 1 places cannot be represented in type > 'int32_t' (aka 'int') > Fixes: > 21245/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5683334274613248 > > Found-by: continuous fuzzing process > https://

[FFmpeg-devel] [PATCH] avcodec/dirac_vlc: Fix integer overflow in ff_dirac_golomb_read_32bit()

2020-04-24 Thread Michael Niedermayer
Fixes: left shift of 1073741824 by 1 places cannot be represented in type 'int32_t' (aka 'int') Fixes: 21245/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5683334274613248 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed

[FFmpeg-devel] [PATCH V3 1/1] ensure closed caption info which is visible in default stream dump is also available in results when -show_streams is used

2020-04-24 Thread vectronic
Signed-off-by: vectronic --- doc/ffprobe.xsd | 1 + fftools/ffprobe.c | 2 ++ tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 +- tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 | 2 +- tests

[FFmpeg-devel] [PATCH V3 0/1] ffprobe add closed caption output to stream info

2020-04-24 Thread vectronic
sorry, missed all the changes in the last version... trying again... ensure closed caption info which is visible in default stream dump is also available in results when -show_streams is used and update test references for closed_caption output in ffprobe stream results vectronic (1): ensure cl

[FFmpeg-devel] [PATCH V2 0/1] ffprobe add closed caption output to stream info

2020-04-24 Thread vectronic
ensure closed caption info which is visible in default stream dump is also available in results when -show_streams is used and update test references for closed_caption output in ffprobe stream results vectronic (1): ensure closed caption info which is visible in default stream dump is also

[FFmpeg-devel] [PATCH V2 1/1] ensure closed caption info which is visible in default stream dump is also available in results when -show_streams is used

2020-04-24 Thread vectronic
Signed-off-by: vectronic --- doc/ffprobe.xsd | 1 + tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 +- tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 | 2 +- tests/ref/fate/concat-demuxer-simple1-lavf-mxf| 2 +- tests

Re: [FFmpeg-devel] [PATCH v2 2/3] swscale/x86/output: add AVX2 version of yuv2nv12cX

2020-04-24 Thread James Almer
On 4/24/2020 1:31 PM, Nelson Gomez wrote: > From: Nelson Gomez > > 256 bits is just wide enough to fit all the operands needed to vectorize > the software implementation, but AVX2 is needed to for a couple of > instructions like cross-lane permutation. > > Output is bit-for-bit identical to C. >

Re: [FFmpeg-devel] [PATCH v10 1/2] avcodec: add support for Cunning Developments' ADPCM

2020-04-24 Thread Michael Niedermayer
On Sat, Apr 18, 2020 at 12:20:39AM +, Zane van Iperen wrote: > Signed-off-by: Zane van Iperen > --- > Changelog | 1 + > doc/general.texi| 1 + > libavcodec/Makefile | 1 + > libavcodec/adpcm.c | 33 + > libavcodec/adpcm_data.c

Re: [FFmpeg-devel] [PATCH 1/2] tools ffprobe: add closed caption output to stream info

2020-04-24 Thread Nicolas George
vectronic (12020-04-24): > ensure closed caption info which is visible in default stream dump is also > available in results when -show_streams is used > > Signed-off-by: vectronic > --- > fftools/ffprobe.c | 2 ++ > 1 file changed, 2 insertions(+) I think you need to update doc/ffprobe.xsd if

[FFmpeg-devel] [PATCH 2/2] fate: update test references for closed_caption output in ffprobe stream results

2020-04-24 Thread vectronic
Signed-off-by: vectronic --- tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 +- tests/ref/fate/concat-demuxer-extended-lavf-mxf_d10 | 2 +- tests/ref/fate/concat-demuxer-simple1-lavf-mxf| 2 +- tests/ref/fate/concat-demuxer-simple1-lavf-mxf_d10| 2 +- test

[FFmpeg-devel] [PATCH 0/2] ffprobe add closed caption output to stream info

2020-04-24 Thread vectronic
closed caption presence is detected with ffprobe and output as part of av_dump_format() however it is not included in output from -show_streams this add closed_captions=0 or 1 to the stream info output and updates fate test results. vectronic (2): tools ffprobe: add closed caption output to stre

[FFmpeg-devel] [PATCH 1/2] tools ffprobe: add closed caption output to stream info

2020-04-24 Thread vectronic
ensure closed caption info which is visible in default stream dump is also available in results when -show_streams is used Signed-off-by: vectronic --- fftools/ffprobe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 840fcb71e2..f0916cbd70 1006

Re: [FFmpeg-devel] [PATCH v2 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-24 Thread Artem Galin
Hi Steve, The updated review is available by link https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=1017 Thanks, Artem. On Wed, 22 Apr 2020 at 15:39, Artem Galin wrote: > Hi Steve, > > On Tue, 21 Apr 2020 at 11:25, Steve Lhomme wrote: > >> Hi, >> >> On 2020-04-15 15:07, artem.ga...@gma

[FFmpeg-devel] [PATCH v2 3/3] swscale: cosmetic fixes

2020-04-24 Thread Nelson Gomez
From: Nelson Gomez Signed-off-by: Nelson Gomez --- libswscale/output.c | 13 - libswscale/swscale_internal.h | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 2e5d6076ab..bddfaf16af 100644 --- a/libsws

[FFmpeg-devel] [PATCH v2 1/3] swscale: make yuv2interleavedX more asm-friendly

2020-04-24 Thread Nelson Gomez
From: Nelson Gomez Extracting information from SwsContext in assembly is difficult, and rearranging SwsContext just for asm access didn't look good. These functions only need a couple of fields from it anyway, so just make them parameters in their own right. Signed-off-by: Nelson Gomez --- lib

[FFmpeg-devel] [PATCH v2 2/3] swscale/x86/output: add AVX2 version of yuv2nv12cX

2020-04-24 Thread Nelson Gomez
From: Nelson Gomez 256 bits is just wide enough to fit all the operands needed to vectorize the software implementation, but AVX2 is needed to for a couple of instructions like cross-lane permutation. Output is bit-for-bit identical to C. Signed-off-by: Nelson Gomez --- libswscale/x86/output.

[FFmpeg-devel] [PATCH v2 0/3] swscale: add AVX2 version of yuv2nv12cX

2020-04-24 Thread Nelson Gomez
v2: - Addressing comments James left on iter. 1 - Cleaned up how dither gets read to avoid using stack space v1: http://ffmpeg.org/pipermail/ffmpeg-devel/2020-April/261313.html This patchset aims to optimize yuv2nv12cX_c for Intel/AMD chips by adding an AVX2 implementation of it. To support t

Re: [FFmpeg-devel] [PATCH 2/3] swscale/x86/output: add AVX2 version of yuv2nv12cX

2020-04-24 Thread Michael Niedermayer
On Thu, Apr 23, 2020 at 08:13:18PM -0700, Nelson Gomez wrote: > From: Nelson Gomez > > 256 bits is just wide enough to fit all the operands needed to vectorize > the software implementation, but AVX2 is needed to for some instructions > like 16-to-32 bit vector sign extension. > > Output is bit-

[FFmpeg-devel] [PATCH v3 1/4] fftools/qsv: enabling d3d11va/dxva2 device selection

2020-04-24 Thread artem . galin
From: Artem Galin child_device_type argument is responsible for selection. Usage examples: -init_hw_device qsv:hw,child_device_type=d3d11va -init_hw_device qsv:hw,child_device_type=dxva2 Signed-off-by: Artem Galin --- fftools/ffmpeg_opt.c | 12 +++- 1 file changed, 11

[FFmpeg-devel] [PATCH 2/2] avformat mov fix to detect if stream position has been reset

2020-04-24 Thread vectronic
if pos has been reset, clear fragments and indexes and search for next root Signed-off-by: vectronic --- libavformat/mov.c | 36 +--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 3d6fef685d..8f051fb9b1

[FFmpeg-devel] [PATCH 1/2] avformat hls fix to seek logic

2020-04-24 Thread vectronic
ensure a keyframe is returned if AVSEEK_FLAG_ANY is not specified Signed-off-by: vectronic --- libavformat/hls.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index fc45719d1c..4e59142c99 100644 --- a/libavformat/hls.c +++ b/lib

[FFmpeg-devel] [PATCH 0/2] fix for seeking in HLS with TS/FMP4 media

2020-04-24 Thread vectronic
I am resubmitting a patch which fixes the following two tickets: https://trac.ffmpeg.org/ticket/7359 https://trac.ffmpeg.org/ticket/7485 The patch consists of 2 parts. The first is necessary to fix the case of HLS seeking when the HLS package consists of ts files. The second fixes HLS seeking wh

[FFmpeg-devel] [PATCH v3 3/4] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-04-24 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callbacks with proper MediaSDK pair type support. Extending structure for proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavcodec/qsv.c | 66 +++ libavcode

[FFmpeg-devel] [PATCH v3 4/4] libavutil/qsv: enabling d3d11va support

2020-04-24 Thread artem . galin
From: Artem Galin Makes selection of d3d11va device type by default and over DirectX 9, which is still supported but requires explicit selection. This enables usage of non-powered/headless GPU, better HDR support. Pool of resources is allocated as one texture with array of slices. Added d3d11va

[FFmpeg-devel] [PATCH v3 2/4] libavfilter/qsvvpp: enabling d3d11va support

2020-04-24 Thread artem . galin
From: Artem Galin Adding DX11 relevant device type checks and adjusting callback with proper MediaSDK pair type support. Signed-off-by: Artem Galin --- libavfilter/qsvvpp.c | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/libavfilter/qsv

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Martin Storsjö
On Fri, 24 Apr 2020, Guo, Yejun wrote: -Original Message- From: ffmpeg-devel On Behalf Of Martin Storsj? Sent: Friday, April 24, 2020 6:44 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra

Re: [FFmpeg-devel] [PATCH v10 0/2] Pro Pinball Series Soundbank demuxer + decoder.

2020-04-24 Thread Zane van Iperen
On Sat, 18 Apr 2020 00:20:30 + "Zane van Iperen" wrote: > > Adds support for the soundbank files used by the Pro Pinball series > of games. > Ping again. Zane ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listi

Re: [FFmpeg-devel] [PATCH] avcodec/ass: explicitly set ScaledBorderAndShadow

2020-04-24 Thread Oneric
On Fri, Apr 17, 2020 at 03:35:44 +0200, one...@oneric.de wrote: > From 74d3f6bd0189b0f4922404fccbefe95e1f01093d Mon Sep 17 00:00:00 2001 > From: Oneric > Date: Fri, 17 Apr 2020 00:38:53 +0200 > Subject: [PATCH] avcodec/ass: explicitly set ScaledBorderAndShadow > > --- > libavcodec/ass.c

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Guo, Yejun
> -Original Message- > From: ffmpeg-devel On Behalf Of Martin > Storsj? > Sent: Friday, April 24, 2020 6:44 PM > To: FFmpeg development discussions and patches > Subject: Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for > cases with extra intermediate precision > > O

Re: [FFmpeg-devel] [PATCH 1/1] avformat/http: handle SEEK_SET to filesize

2020-04-24 Thread vectronic
> On 24 Apr 2020, at 12:09, vectronic wrote: > > if whence == SEEK_SET and offset is filesize and is_streamable is false > we can just return the filesize to prevent an HTTP 416 error > > Signed-off-by: vectronic > --- > libavformat/http.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[FFmpeg-devel] [PATCH 1/1] avformat/http: handle SEEK_SET to filesize

2020-04-24 Thread vectronic
if whence == SEEK_SET and offset is filesize and is_streamable is false we can just return the filesize to prevent an HTTP 416 error Signed-off-by: vectronic --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index c

[FFmpeg-devel] [PATCH 0/1] avformat/http: handle SEEK_SET to filesize and fix #6885

2020-04-24 Thread vectronic
if whence == SEEK_SET and offset is filesize and is_streamable is false we can just return the filesize to prevent an HTTP 416 error Fixes https://trac.ffmpeg.org/ticket/6885 vectronic (1): avformat/http: handle SEEK_SET to filesize libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [FFmpeg-devel] [PATCH v2] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Mattias Wadman
On Fri, Apr 24, 2020 at 12:41 PM Mattias Wadman wrote: > > lavf flacenc could previously write truncated metadata picture size if > the picture data did not fit in 24 bits. Detect this by truncting the > size found inside the picture block and if it matches the block size > use it and read rest of

[FFmpeg-devel] [PATCH v3] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Mattias Wadman
lavf flacenc could previously write truncated metadata picture size if the picture data did not fit in 24 bits. Detect this by truncting the size found inside the picture block and if it matches the block size use it and read rest of picture data. Also only enable this workaround flac files and no

Re: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for cases with extra intermediate precision

2020-04-24 Thread Martin Storsjö
On Thu, 23 Apr 2020, Guo, Yejun wrote: -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Martin Storsj? Sent: Thursday, April 23, 2020 2:34 PM To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] dnn-layer-mathbinary-test: Fix tests for ca

Re: [FFmpeg-devel] [PATCH] Add general_assembly_bootstrap.pl

2020-04-24 Thread Josh de Kock
On 24/04/2020 11:29, Nicolas George wrote: Josh de Kock (12020-04-24): This script aims to extract contributors who are eligible for the general assembly. Signed-off-by: Josh de Kock --- Better late than never, this patch will continue to put in place the voting systems for FFmpeg discuss

[FFmpeg-devel] [PATCH v2] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Mattias Wadman
lavf flacenc could previously write truncated metadata picture size if the picture data did not fit in 24 bits. Detect this by truncting the size found inside the picture block and if it matches the block size use it and read rest of picture data. Also only enable this workaround flac files and no

Re: [FFmpeg-devel] [PATCH] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Mattias Wadman
On Fri, Apr 24, 2020 at 11:26 AM Andreas Rheinhardt wrote: > > Mattias Wadman: > > On Fri, Apr 24, 2020 at 7:29 AM Andreas Rheinhardt > > wrote: > >> > >> Mattias Wadman: > >>> lavf flacenc could previously write truncated metadata picture size if > >>> the picture data did not fit in 24 bits. De

Re: [FFmpeg-devel] [PATCH] Add general_assembly_bootstrap.pl

2020-04-24 Thread Nicolas George
Josh de Kock (12020-04-24): > This script aims to extract contributors who are eligible for the > general assembly. > > Signed-off-by: Josh de Kock > --- > > Better late than never, this patch will continue to put in place the > voting systems for FFmpeg discussed at VDD 2019 and FOSDEM 2020.

[FFmpeg-devel] [PATCH] Add general_assembly_bootstrap.pl

2020-04-24 Thread Josh de Kock
This script aims to extract contributors who are eligible for the general assembly. Signed-off-by: Josh de Kock --- Better late than never, this patch will continue to put in place the voting systems for FFmpeg discussed at VDD 2019 and FOSDEM 2020. There is probably a better way to do this,

Re: [FFmpeg-devel] [PATCH] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Andreas Rheinhardt
Mattias Wadman: > On Fri, Apr 24, 2020 at 7:29 AM Andreas Rheinhardt > wrote: >> >> Mattias Wadman: >>> lavf flacenc could previously write truncated metadata picture size if >>> the picture data did not fit in 24 bits. Detect this by truncting the >>> size found inside the picture block and if it

Re: [FFmpeg-devel] [PATCH] libavformat/flacdec: Workaround for truncated metadata picture size

2020-04-24 Thread Mattias Wadman
On Fri, Apr 24, 2020 at 7:29 AM Andreas Rheinhardt wrote: > > Mattias Wadman: > > lavf flacenc could previously write truncated metadata picture size if > > the picture data did not fit in 24 bits. Detect this by truncting the > > size found inside the picture block and if it matches the block siz

[FFmpeg-devel] [PATCH] libavcodec/qsvenc.c fixed handling of closed gop flag

2020-04-24 Thread Elio Blanca
Hello, this is my very first message to this list, so first of all: thank you for your huge work! Now, to the issue: I made this patch for libavcodec/qsvenc.c in order to honor the GopOptFlag flag for hevc_qsv encodings (maybe others will be affected though). In statement 513 (the third fix) a