Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: Adapt to the new internal encode API

2020-03-07 Thread Andriy Gelman
On Sat, 07. Mar 23:13, James Almer wrote: > On 3/7/2020 9:23 PM, Andriy Gelman wrote: > > From: Andriy Gelman > > > > Should be squashed with: > > http://ffmpeg.org/pipermail/ffmpeg-devel/2020-February/257735.html > > Thank you! Only three remain now :) > > > > > Signed-off-by: Andriy Gelman

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: Adapt to the new internal encode API

2020-03-07 Thread Andriy Gelman
On Sat, 07. Mar 23:23, James Almer wrote: > On 3/7/2020 9:23 PM, Andriy Gelman wrote: > > From: Andriy Gelman > > > > Should be squashed with: > > http://ffmpeg.org/pipermail/ffmpeg-devel/2020-February/257735.html > > > > Signed-off-by: Andriy Gelman > > --- > > libavcodec/v4l2_m2m.c | 9

Re: [FFmpeg-devel] [PATCH 3/4] vaapi_encode_h265: Query encoding block sizes and features

2020-03-07 Thread Fu, Linjie
> From: ffmpeg-devel On Behalf Of > Mark Thompson > Sent: Sunday, March 8, 2020 00:31 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 3/4] vaapi_encode_h265: Query > encoding block sizes and features > > On 05/03/2020 05:13, Fu, Linjie wrote: > >> -Original Message- >

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: Adapt to the new internal encode API

2020-03-07 Thread James Almer
On 3/7/2020 9:23 PM, Andriy Gelman wrote: > From: Andriy Gelman > > Should be squashed with: > http://ffmpeg.org/pipermail/ffmpeg-devel/2020-February/257735.html > > Signed-off-by: Andriy Gelman > --- > libavcodec/v4l2_m2m.c | 9 - > libavcodec/v4l2_m2m.h | 6 +- >

Re: [FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: Adapt to the new internal encode API

2020-03-07 Thread James Almer
On 3/7/2020 9:23 PM, Andriy Gelman wrote: > From: Andriy Gelman > > Should be squashed with: > http://ffmpeg.org/pipermail/ffmpeg-devel/2020-February/257735.html Thank you! Only three remain now :) > > Signed-off-by: Andriy Gelman > --- > libavcodec/v4l2_m2m.c | 9 - >

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m_enc: Adapt to the new internal encode API

2020-03-07 Thread Andriy Gelman
From: Andriy Gelman Should be squashed with: http://ffmpeg.org/pipermail/ffmpeg-devel/2020-February/257735.html Signed-off-by: Andriy Gelman --- libavcodec/v4l2_m2m.c | 9 - libavcodec/v4l2_m2m.h | 6 +- libavcodec/v4l2_m2m_dec.c | 2 +- libavcodec/v4l2_m2m_enc.c | 17

Re: [FFmpeg-devel] [PATCH v2 7/7] avformat/audiointerleave: use a fixed frame duration for non-audio packets

2020-03-07 Thread Michael Niedermayer
On Sat, Mar 07, 2020 at 10:21:33AM +0100, Marton Balint wrote: > > > On Sat, 7 Mar 2020, Michael Niedermayer wrote: > > >On Thu, Mar 05, 2020 at 10:56:28PM +0100, Marton Balint wrote: > >>The packet durations might not be set properly which can cause the MXF muxer > >>to write more than one

[FFmpeg-devel] [PATCH 2/2] avcodec/cbs_h2645: Avoid more cases of 0 size slices

2020-03-07 Thread Michael Niedermayer
Fixes: Assertion failure Fixes: 19629/clusterfuzz-testcase-minimized-ffmpeg_BSF_H264_METADATA_fuzzer-5676822528524288 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/cbs_h2645.c | 6 -- 1

[FFmpeg-devel] [PATCH 1/2] avcodec/cbs_jpeg: Check length for SOS

2020-03-07 Thread Michael Niedermayer
Fixes: out of array access Fixes: 19734/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5673507031875584 Fixes: 19353/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5703944462663680 Found-by: continuous fuzzing process

Re: [FFmpeg-devel] [PATCH] avformat/avidec: recognize H265 fourcc as hevc

2020-03-07 Thread Michael Niedermayer
On Sat, Mar 07, 2020 at 08:23:34AM +0100, Paul B Mahol wrote: > On 3/6/20, Michael Niedermayer wrote: > > On Fri, Mar 06, 2020 at 09:18:50PM +0100, Paul B Mahol wrote: > >> Fixes decoding of came2_2020-01-13__20-38-58_21-00-00__Chn2.avi > >> > >> Signed-off-by: Paul B Mahol > >> --- > >>

Re: [FFmpeg-devel] [PATCH 1/2] fftools/ffmpeg_opt: warn about overwritten parsed options

2020-03-07 Thread Marton Balint
On Sat, 29 Feb 2020, Marton Balint wrote: Signed-off-by: Marton Balint --- fftools/ffmpeg_opt.c | 70 +--- 1 file changed, 67 insertions(+), 3 deletions(-) Ping, will apply soon. Thanks, Marton diff --git a/fftools/ffmpeg_opt.c

Re: [FFmpeg-devel] [PATCH v2 3/4] changelog: add adpcm_ima_alp decoder and alp demuxer

2020-03-07 Thread Moritz Barsnick
On Sat, Mar 07, 2020 at 14:15:55 +, Zane van Iperen wrote: > - cas video filter > - > +- High Voltage Software ADPCM decoder > +- LEGO Racers ALP (.tun & .pcm) demuxer Changelog (and doc, patch 4/4) should be added with the respective functional patch. Oh, and don't remove that empty line

Re: [FFmpeg-devel] [PATCH] ffmpeg: default hwaccel_output_format to cuda when hwaccel is cuvid

2020-03-07 Thread Timo Rothenpieler
On 07.03.2020 16:20, James Almer wrote: On 3/7/2020 9:27 AM, Timo Rothenpieler wrote: This ensures old commandlines using -hwaccel cuvid don't break due to the recent removal of the the cuvid-specific hwaccel bringup. --- fftools/ffmpeg_opt.c | 31 +++ 1 file

Re: [FFmpeg-devel] [PATCH] lavc/vaapi_encode_h265: fix conf_win_xxx_offset for 4:2:2/4:4:4 encoding

2020-03-07 Thread Mark Thompson
On 05/03/2020 07:41, Linjie Fu wrote: > Based on Table 6-1, set SubWidth and SubHeightC depending on chroma format. > > Based on D-28 and D-29, set the correct cropped width/height. > > croppedWidth = pic_width_in_luma_samples − > SubWidthC * ( conf_win_right_offset +

Re: [FFmpeg-devel] [PATCH 3/4] vaapi_encode_h265: Query encoding block sizes and features

2020-03-07 Thread Mark Thompson
On 05/03/2020 05:13, Fu, Linjie wrote: >> -Original Message- >> From: ffmpeg-devel On Behalf Of >> Mark Thompson >> Sent: Thursday, March 5, 2020 08:25 >> To: ffmpeg-devel@ffmpeg.org >> Subject: [FFmpeg-devel] [PATCH 3/4] vaapi_encode_h265: Query encoding >> block sizes and features >> >>

Re: [FFmpeg-devel] [PATCH 4/4] vaapi_encode_h265: Enable 4:2:2 support

2020-03-07 Thread Mark Thompson
On 05/03/2020 02:49, Fu, Linjie wrote: > 2. recon surface of Y210 or 444 (AYUV and Y410 in media-driver) depends on > the surface hint [3] in > libva and corresponding code in media-driver to resize the recon surface > which is not upstreamed > yet. What is the reasoning for forcing the user to

[FFmpeg-devel] [PATCH] configure: Do not abort when cross-compiling to the native CPU

2020-03-07 Thread David Michael
Using a compiler with a different host triplet is considered cross-compiling, even when it is for the same architecture as the build system. With such a cross-compiler, it is still valid to optimize builds with --cpu=host. Drop the condition that aborts in this case, since a cross-compiler for

[FFmpeg-devel] [PATCH] libavformat/lrcdec: Fix count of timestamp

2020-03-07 Thread Zhao, Gang
Current function count_ts will count invalid timestamp formats like [00:00:00] [00-00-00] or [00:00.00][[[00:00.00]]] as valid timestamp. This could cause some subtitles would be incorrectly counted as timestamp. Fix it by using function read_ts to check valid timestamp and get the offset. Fixes

Re: [FFmpeg-devel] [PATCH] ffmpeg: default hwaccel_output_format to cuda when hwaccel is cuvid

2020-03-07 Thread James Almer
On 3/7/2020 9:27 AM, Timo Rothenpieler wrote: > This ensures old commandlines using -hwaccel cuvid don't break due to > the recent removal of the the cuvid-specific hwaccel bringup. > --- > fftools/ffmpeg_opt.c | 31 +++ > 1 file changed, 19 insertions(+), 12

[FFmpeg-devel] [PATCH v2 4/4] doc: add adpcm_ima_alp

2020-03-07 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- doc/general.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/general.texi b/doc/general.texi index dbdc348598..87eaad7791 100644 --- a/doc/general.texi +++ b/doc/general.texi @@ -1100,6 +1100,7 @@ following image formats are supported: @item ADPCM

[FFmpeg-devel] [PATCH v2 2/4] avformat: add demuxer for LEGO Racers' ALP format

2020-03-07 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/alp.c| 146 +++ libavformat/version.h| 4 +- 4 files changed, 150 insertions(+), 2 deletions(-) create mode 100644

[FFmpeg-devel] [PATCH v2 3/4] changelog: add adpcm_ima_alp decoder and alp demuxer

2020-03-07 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- Changelog | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index cb310a3abc..0503069daa 100644 --- a/Changelog +++ b/Changelog @@ -43,7 +43,8 @@ version : - Rayman 2 ADPCM decoder - Rayman 2 APM demuxer - cas video

[FFmpeg-devel] [PATCH v2 1/4] avcodec: add decoder for High Voltage Software's ALP ADPCM

2020-03-07 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavcodec/Makefile | 1 + libavcodec/adpcm.c | 36 libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 +++ libavcodec/version.h| 4 ++-- 6 files changed, 48

[FFmpeg-devel] [PATCH v2 0/4] High Voltage Software ALP demuxer + decoder.

2020-03-07 Thread Zane van Iperen
Adds support for the .TUN and .PCM files used by some High Voltage Software games. v2: - check for header size and "ADPCM" magic in probe - error if sample rate > 44100 to catch possible overflow - don't allocate stream until after header is validated - formatting fixes Zane van Iperen

[FFmpeg-devel] [PATCH] ffmpeg: default hwaccel_output_format to cuda when hwaccel is cuvid

2020-03-07 Thread Timo Rothenpieler
This ensures old commandlines using -hwaccel cuvid don't break due to the recent removal of the the cuvid-specific hwaccel bringup. --- fftools/ffmpeg_opt.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/fftools/ffmpeg_opt.c

Re: [FFmpeg-devel] [PATCH v2 6/7] avformat/mxfenc: allow all frame rates if -strict mode is set to unofficial or lower

2020-03-07 Thread Tomas Härdin
tor 2020-03-05 klockan 22:56 +0100 skrev Marton Balint: > There was no consensus wheter or not to allow unofficial frame rates due to > possible interoperability issues, a compromise is to only allow it if -strict > mode is set to unofficial. > > Signed-off-by: Marton Balint > --- >

Re: [FFmpeg-devel] [PATCH 4/4] avformat/mxfenc: add some missing content package rates

2020-03-07 Thread Tomas Härdin
ons 2020-03-04 klockan 17:48 +0100 skrev Carl Eugen Hoyos: > Am Mi., 4. März 2020 um 17:29 Uhr schrieb Tomas Härdin < > tjop...@acc.umu.se>: > > ons 2020-03-04 klockan 11:31 +0100 skrev Carl Eugen Hoyos: > > > Am Di., 3. März 2020 um 02:18 Uhr schrieb Marton Balint < > > > c...@passwd.hu>: > > >

Re: [FFmpeg-devel] [PATCH 2/4] avformat/mxf: get rid of samples per frame array usage

2020-03-07 Thread Tomas Härdin
ons 2020-03-04 klockan 19:58 +0100 skrev Michael Niedermayer: > On Tue, Mar 03, 2020 at 07:54:55PM +0100, Tomas Härdin wrote: > > mån 2020-03-02 klockan 21:35 +0100 skrev Marton Balint: > > > On Mon, 2 Mar 2020, Tomas Härdin wrote: > > > > > > > fre 2020-02-28 klockan 01:37 +0100 skrev Marton

Re: [FFmpeg-devel] [PATCH v2 7/7] avformat/audiointerleave: use a fixed frame duration for non-audio packets

2020-03-07 Thread Marton Balint
On Sat, 7 Mar 2020, Michael Niedermayer wrote: On Thu, Mar 05, 2020 at 10:56:28PM +0100, Marton Balint wrote: The packet durations might not be set properly which can cause the MXF muxer to write more than one packet of a stream to an edit unit messing up the constant byte per element