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

2020-03-15 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- Changelog | 1 + doc/general.texi| 1 + libavcodec/Makefile | 1 + libavcodec/adpcm.c | 33 + libavcodec/adpcm_data.c | 13 + libavcodec/adpcm_data.h | 2 ++ libavcodec/allcodecs.c |

[FFmpeg-devel] [PATCH 2/2] avformat: add demuxer for Pro Pinball Series' Soundbanks

2020-03-15 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- Changelog| 1 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/pp_bnk.c | 213 +++ libavformat/version.h| 2 +- 5 files changed, 217 insertions(+), 1 deletion(-) cr

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

2020-03-15 Thread Zane van Iperen
Adds support for the soundbank files used by the Pro Pinball series of games. Please ping for review. Zane van Iperen (2): avcodec: add support for Cunning Developments' ADPCM avformat: add demuxer for Pro Pinball Series' Soundbanks Changelog| 2 + doc/general.texi

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: handle the v4l2 eos event

2020-03-15 Thread Ming Qian
when the last frame of capture is dequeueed, driver may send this V4L2_EVENT_EOS event, if this event is received, then we can set the capture port done Signed-off-by: Ming Qian --- libavcodec/v4l2_context.c | 5 + libavcodec/v4l2_m2m_dec.c | 10 ++ libavcodec/v4l2_m2m_enc.c | 22 ++

[FFmpeg-devel] [PATCH] avcodec/v4l2_buffers: don't prevent enqueue capture buffer to driver

2020-03-15 Thread Ming Qian
the draining is set when the output port is finished, but it doesn't mean the capture port is finished. especially for decoder, there may be a stream buffer to store several frames. so the decoder still need capture buffer even if the draining is set. Signed-off-by: Ming Qian --- libavcodec/v4l2

[FFmpeg-devel] [PATCH] avcodec/v4l2_m2m: fix setting the frame rate

2020-03-15 Thread Ming Qian
v4l2 set the frame rate through frame intervals, not set frame rate directly. the frame rate and frame intervals are reciprocal. so in libavdevice/v4l2.c we can see the following code: tpf->numerator = framerate_q.den; tpf->denominator = framerate_q.num; Signed-off-by: Ming Qian

[FFmpeg-devel] [PATCH] hwcontext_opencl: include header file in HEADERS

2020-03-15 Thread Daniel Playfair Cal
This matches the inclusion of the other hwcontext_.h headers. The skipping of the header depending on build flags is already present. Signed-off-by: Daniel Playfair Cal: --- libavutil/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/Makefile b/libavutil/Makefile index a2dae

[FFmpeg-devel] [PATCH] avdevice: Add support for Solaris/NetBSD audio - sunau

2020-03-15 Thread nia
It's expected this will primarily be used on NetBSD as most Solarish platforms seem to prefer either OSS or PulseAudio now. The OSS support in FFmpeg has some problems on NetBSD due to implementation differences between OSSv4 and NetBSD's OSS emulation layer. Using the relatively well documented

Re: [FFmpeg-devel] [PATCH 12/18] h264_sei: use a separate reader for the individual SEI messages

2020-03-15 Thread James Almer
On 3/13/2020 7:28 AM, Anton Khirnov wrote: > This tells the parsing functions the payload size and prevents them from > overreading. > --- > libavcodec/h264_sei.c | 30 +++--- > 1 file changed, 15 insertions(+), 15 deletions(-) > > diff --git a/libavcodec/h264_sei.c b/liba

[FFmpeg-devel] [PATCH 1/4] avformat/asfdec_f: Fix overflow check in get_tag()

2020-03-15 Thread Michael Niedermayer
Fixes: signed integer overflow: 2 * 1210064928 cannot be represented in type 'int' Fixes: 20873/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5761116909338624 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nieder

[FFmpeg-devel] [PATCH 3/4] avcodec/ffwavesynth: Fix integer overflow in computation of ddphi

2020-03-15 Thread Michael Niedermayer
Fixes: signed integer overflow: 1302123111085380114 - -8319005078741256972 cannot be represented in type 'long' Fixes: 20991/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5148554161291264 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/

[FFmpeg-devel] [PATCH 4/4] tools/target_dec_fuzzer: Adjust max_pixels for AV_CODEC_ID_HAP

2020-03-15 Thread Michael Niedermayer
Fixes: Timeout (170sec -> 6sec) Fixes: 20956/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HAP_fuzzer-5713643025203200 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- tools/target_dec_fuzzer.c | 1 +

[FFmpeg-devel] [PATCH 2/4] tools/target_dec_fuzzer: Do not test AV_CODEC_FLAG2_FAST with AV_CODEC_ID_H264

2020-03-15 Thread Michael Niedermayer
This combination skips allocating large padding which can read out of array Fixes: 20978/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5746381832847360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Nied

Re: [FFmpeg-devel] [PATCH 7/7] avformat: add hca demuxer

2020-03-15 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/hca.c| 144 +++ > 3 files changed, 146 insertions(+) > create mode 100644 libavformat/hca.c > > diff --git a/libavf

Re: [FFmpeg-devel] [PATCH 1/3] ffmpeg: explicitly handle sub2video subpicture initialization

2020-03-15 Thread Nicolas George
Jan Ekström (12020-03-15): > This patch was originally posted on Feb 26, 2019. It was then pinged > 3rd of March, 2019 > (https://patchwork.ffmpeg.org/project/ffmpeg/patch/20190226001220.27888-1-jee...@gmail.com/). > I decided then to not push it in due to lack of tests for the exact > case which M

[FFmpeg-devel] [PATCH] JPEG-XL : Image Format Parser

2020-03-15 Thread Varun Gupta
From: Varun Gupta --- libavcodec/avcodec.h| 1 + libavcodec/jpeg-xl.h| 180 + libavcodec/jpeg-xl_parser.c | 707 3 files changed, 888 insertions(+) create mode 100644 libavcodec/jpeg-xl.h create mode 100644 libavcodec/jpeg-xl_parse

Re: [FFmpeg-devel] [PATCH 1/3] ffmpeg: explicitly handle sub2video subpicture initialization

2020-03-15 Thread Jan Ekström
On Thu, Mar 12, 2020 at 1:42 AM Jan Ekström wrote: > > Each time the sub2video structure is initialized, the sub2video > subpicture is initialized together with the first received heartbeat. > The heartbeat's PTS is utilized as the subpicture start time. > > Additionally, add some documentation on

Re: [FFmpeg-devel] [PATCH 6/7] avcodec: add CRI HCA decoder

2020-03-15 Thread Andreas Rheinhardt
Paul B Mahol: > +#include "libavutil/avassert.h" I don't see an assert. > +frame->nb_samples = 1024; If this codec has a fixed number of samples per frame, you should add it to the list in get_audio_frame_duration() in libavcodec/utils.c. Haven't checked the rest. - Andreas

[FFmpeg-devel] [FFMPEG-DEVEL][PATCH][RFC] JPEG-XL : Image Format Parser

2020-03-15 Thread Varun Gupta
From Varun Gupta # This line is ignored. From: Varun Gupta Reply-To: Subject: [FFMPEG-DEVEL][PATCH][RFC] JPEG-XL : Image Format Parser In-Reply-To: ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-deve

[FFmpeg-devel] [PATCH 6/7] avcodec: add CRI HCA decoder

2020-03-15 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/hca_data.h | 128 ++ libavcodec/hcadec.c | 373 6 files changed

Re: [FFmpeg-devel] [PATCH 11/18] h264dec: do not abort if decoding extradata fails

2020-03-15 Thread James Almer
On 3/13/2020 7:28 AM, Anton Khirnov wrote: > Such errors are not necessarily fatal and decoding might still be > possible, e.g. it happens for MVC streams where we do not handle the > subset SPS thus failing to parse its corresponding PPS. > --- > libavcodec/h264dec.c | 12 > 1 file c

[FFmpeg-devel] [PATCH 7/7] avformat: add hca demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/hca.c| 144 +++ 3 files changed, 146 insertions(+) create mode 100644 libavformat/hca.c diff --git a/libavformat/Makefile b/libavformat/Mak

[FFmpeg-devel] [PATCH 2/7] avformat: add fwse demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/fwse.c | 88 3 files changed, 90 insertions(+) create mode 100644 libavformat/fwse.c diff --git a/libavformat/Makefile b/libavformat/Makef

[FFmpeg-devel] [PATCH 5/7] avcodec/allcodecs: move sdx2 to correct place

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/allcodecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 6046b15164..71e14c73e3 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -275,7 +275,6 @@ extern AVCod

[FFmpeg-devel] [PATCH 3/7] avcodec: add derf dpcm decoder

2020-03-15 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/dpcm.c | 32 libavcodec/utils.c | 1 + 6 files changed, 43 insertions(+) d

[FFmpeg-devel] [PATCH 4/7] avformat: add derf demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/derf.c | 79 3 files changed, 81 insertions(+) create mode 100644 libavformat/derf.c diff --git a/libavformat/Makefile b/libavformat/Makef

[FFmpeg-devel] [PATCH 1/7] avcodec: add ADPCM IMA MTF decoder

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/adpcm.c | 33 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 +++ 5 files changed, 43 insertions(+) diff --git a/libavcodec/Makefile

Re: [FFmpeg-devel] Reimbursement request

2020-03-15 Thread Stefano Sabatini
On date Tuesday 2020-03-10 01:59:17 +0100, Carl Eugen Hoyos wrote: > Hi! > > The Chemnitzer Linuxtage were canceled yesterday because of the Coronavirus. > I request reimbursement of €138,86 for the flight to Germany I had > booked last month. > > Thank you, Carl Eugen Approved on my side, given

Re: [FFmpeg-devel] [PATCH 01/18] mpeg4videodec: do not copy a range of fields at once

2020-03-15 Thread Anton Khirnov
Quoting Carl Eugen Hoyos (2020-03-14 13:42:33) > Am Sa., 14. März 2020 um 12:58 Uhr schrieb Paul B Mahol : > > > > On 3/14/20, Carl Eugen Hoyos wrote: > > > Am Fr., 13. März 2020 um 11:30 Uhr schrieb Anton Khirnov > > > : > > > > > > Am I really the only one who finds the code more "fragile" after

Re: [FFmpeg-devel] [PATCH 18/18] h264_ps: pass AVCodecContext as void* where possible

2020-03-15 Thread Anton Khirnov
Quoting Michael Niedermayer (2020-03-13 23:29:12) > On Fri, Mar 13, 2020 at 11:28:50AM +0100, Anton Khirnov wrote: > > Makes sure it is only used for logging and nothing else. > > --- > > libavcodec/h264_ps.c | 18 +- > > 1 file changed, 9 insertions(+), 9 deletions(-) > > > > dif

Re: [FFmpeg-devel] [RFC] QP table API

2020-03-15 Thread Anton Khirnov
Quoting Lynne (2020-03-10 19:54:45) > Mar 10, 2020, 17:45 by an...@khirnov.net: > > > - do we want per-plane quantizers in each block? The original patch > > didn't have them. Do we want separate AC/DC quantizers? Anything else? > > > > No per plane quantizers in each block. > You dropped the gl

Re: [FFmpeg-devel] [PATCH 07/17] avformat/webmdashenc: Remove write_trailer

2020-03-15 Thread James Almer
On 3/15/2020 8:53 AM, Paul B Mahol wrote: > lgtm Applied. > > On 12/26/19, Andreas Rheinhardt wrote: >> It doesn't do anything: All allocated blocks have already been freed in >> write_header. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavformat/webmdashenc.c | 7 --- >> 1 file c

Re: [FFmpeg-devel] [PATCH 5/5] avformat/mpeg: Don't use unintialized value

2020-03-15 Thread Michael Niedermayer
On Sun, Jan 19, 2020 at 02:43:00PM +, Andreas Rheinhardt wrote: > Michael Niedermayer: > > On Tue, Oct 22, 2019 at 03:16:45PM +0200, Andreas Rheinhardt wrote: > >> vobsub_read_packet() didn't check whether an index in array of AVPackets > >> was valid and therefore used uninitialized values. >

[FFmpeg-devel] [RFC] Question Regarding Parsing Files with Sections of Unknown Length and No Delimiters

2020-03-15 Thread Anamitra Ghorui
Hello, I am dealing dealing with a video (gif-like) file format in which there are compressed (entropy coded) segments of unknown length. However, the length of the uncompressed segment of the file is already known. Please check the previous mail by thread if context is required. There are no m

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/dxva2_hevc: add support for parsing HEVC Range Extension data

2020-03-15 Thread Hendrik Leppkes
On Sun, Mar 15, 2020 at 8:12 AM Steve Lhomme wrote: > > Where is this struct specified? I don't see it in the latest released > > Windows SDK. > > It is not. It is reversed engineered from the existing structure and wild > guessing based on the HEVC Range Extension specs. The bits/fields are in t

Re: [FFmpeg-devel] new patch

2020-03-15 Thread mostafa namazi
let me now any progress? On Tuesday, February 18, 2020, 6:41:08 PM GMT+3:30, Mostafa Namazi fard wrote: I found this patch useful for prevent crash in http live stream.I'm using ffmpeg in my application for show http live when remote address send invalid data ffmpeg crash in this par

Re: [FFmpeg-devel] [PATCH 07/17] avformat/webmdashenc: Remove write_trailer

2020-03-15 Thread Paul B Mahol
lgtm On 12/26/19, Andreas Rheinhardt wrote: > It doesn't do anything: All allocated blocks have already been freed in > write_header. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/webmdashenc.c | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/libavformat/webmdashenc.c

Re: [FFmpeg-devel] [PATCH 07/17] avformat/webmdashenc: Remove write_trailer

2020-03-15 Thread Andreas Rheinhardt
Andreas Rheinhardt: > It doesn't do anything: All allocated blocks have already been freed in > write_header. > > Signed-off-by: Andreas Rheinhardt > --- > libavformat/webmdashenc.c | 7 --- > 1 file changed, 7 deletions(-) > > diff --git a/libavformat/webmdashenc.c b/libavformat/webmdashen

Re: [FFmpeg-devel] [PATCH 4/5] avformat: add derf demuxer

2020-03-15 Thread Paul B Mahol
On 3/15/20, Andreas Rheinhardt wrote: > Paul B Mahol: >> Signed-off-by: Paul B Mahol >> --- >> libavformat/Makefile | 1 + >> libavformat/allformats.c | 1 + >> libavformat/derf.c | 79 >> 3 files changed, 81 insertions(+) >> create mode 1006

[FFmpeg-devel] [PATCH] scale_vulkan: add support for RGB->YUV conversions

2020-03-15 Thread Lynne
Patch attached. >From b0febb1dc4263d7c144cae968247053b405b864e Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 15 Mar 2020 10:30:34 + Subject: [PATCH] scale_vulkan: add support for RGB->YUV conversions --- libavfilter/vf_scale_vulkan.c | 298 +++--- libavfilter/v

Re: [FFmpeg-devel] [PATCH 4/5] avformat: add derf demuxer

2020-03-15 Thread Andreas Rheinhardt
Paul B Mahol: > Signed-off-by: Paul B Mahol > --- > libavformat/Makefile | 1 + > libavformat/allformats.c | 1 + > libavformat/derf.c | 79 > 3 files changed, 81 insertions(+) > create mode 100644 libavformat/derf.c > > diff --git a/libavfor

[FFmpeg-devel] [PATCH 5/5] avcodec/allcodecs: move sdx2 to correct place

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/allcodecs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 6046b15164..71e14c73e3 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -275,7 +275,6 @@ extern AVCod

[FFmpeg-devel] [PATCH 4/5] avformat: add derf demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/derf.c | 79 3 files changed, 81 insertions(+) create mode 100644 libavformat/derf.c diff --git a/libavformat/Makefile b/libavformat/Makef

[FFmpeg-devel] [PATCH 3/5] avcodec: add derf dpcm decoder

2020-03-15 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/dpcm.c | 32 libavcodec/utils.c | 1 + 6 files changed, 43 insertions(+) d

[FFmpeg-devel] [PATCH 1/5] avcodec: add ADPCM IMA MTF decoder

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 1 + libavcodec/adpcm.c | 33 + libavcodec/allcodecs.c | 1 + libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 7 +++ 5 files changed, 43 insertions(+) diff --git a/libavcodec/Makefile

[FFmpeg-devel] [PATCH 2/5] avformat: add fwse demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/fwse.c | 88 3 files changed, 90 insertions(+) create mode 100644 libavformat/fwse.c diff --git a/libavformat/Makefile b/libavformat/Makef

[FFmpeg-devel] [PATCH 2/2] avformat: add fwse demuxer

2020-03-15 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/fwse.c | 88 3 files changed, 90 insertions(+) create mode 100644 libavformat/fwse.c diff --git a/libavformat/Makefile b/libavformat/Makef

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/dxva2_hevc: add support for parsing HEVC Range Extension data

2020-03-15 Thread Steve Lhomme
> On March 13, 2020 3:46 PM Hendrik Leppkes wrote: > > > On Fri, Mar 13, 2020 at 11:25 AM Steve Lhomme wrote: > > > > Mimick the existing structure and add the extra fields from the Range > > Extension > > in a wrapping structure. > > > > The FF_DXVA2_WORKAROUND_HEVC_REXT is set by the decode