Re: [FFmpeg-devel] [PATCH v6] avdevice/xcbgrab: Add select_region option

2020-11-02 Thread Andriy Gelman
On Thu, 08. Oct 23:40, Andriy Gelman wrote: > On Sat, 11. Jul 11:29, Omar Emara wrote: > > This patch adds a select_region option to the xcbgrab input device. > > If set to 1, the user will be prompted to select the grabbing area > > graphically by clicking and dragging. A rectangle will be drawn t

Re: [FFmpeg-devel] [FFmpeg-cvslog] avformat/rtsp: support for listen_timeout option for sdp

2020-11-02 Thread Andriy Gelman
On Thu, 22. Oct 14:21, Limin Wang wrote: > ffmpeg | branch: master | Limin Wang | Sat Oct 10 > 21:30:21 2020 +0800| [92c40ef882be115e72d2aa02f9032b7ce88f8537] | committer: > Limin Wang > > avformat/rtsp: support for listen_timeout option for sdp > > Now the listen timeout is hardcoded(10s). >

Re: [FFmpeg-devel] [PATCH] avformat/nut: Store display matrix side data

2020-11-02 Thread Matthias Neugebauer
Am 03.11.2020 um 00:23 schrieb Michael Niedermayer : > "st_sd_displaymatrix" is not listed in nut.txt > that either needs to be added or if its a non standard field it needs a > X- prefix Thanks for the feedback. Adding X- is not a problem, but what is the difference to "r_frame_rate“ for storing

Re: [FFmpeg-devel] [PATCH v2 5/5] avformat: add amv muxer

2020-11-02 Thread Andreas Rheinhardt
Zane van Iperen: > > > On 3/11/20 10:44 am, Andreas Rheinhardt wrote: >>> +static void amv_write_vlist(AVFormatContext *s, AVCodecParameters *par) >>> +{ >>> +uint8_t buf[FFMAX(AMV_VIDEO_STRH_SIZE, AMV_VIDEO_STRF_SIZE)] = { 0 }; >>> +int64_t tag_list, tag_str; >>> + >>> +av_assert0(pa

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/utils: add adpcm_ima_alp to av_get_exact_bits_per_sample()

2020-11-02 Thread Zane van Iperen
On 2/11/20 1:47 pm, Zane van Iperen wrote: > > Signed-off-by: Zane van Iperen > --- > libavcodec/utils.c | 1 + > 1 file changed, 1 insertion(+) > Will apply soon. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/li

Re: [FFmpeg-devel] [PATCH v2 5/5] avformat: add amv muxer

2020-11-02 Thread Zane van Iperen
On 3/11/20 10:44 am, Andreas Rheinhardt wrote: >> +static void amv_write_vlist(AVFormatContext *s, AVCodecParameters *par) >> +{ >> +uint8_t buf[FFMAX(AMV_VIDEO_STRH_SIZE, AMV_VIDEO_STRF_SIZE)] = { 0 }; >> +int64_t tag_list, tag_str; >> + >> +av_assert0(par->codec_id == AV_CODEC_ID_AM

[FFmpeg-devel] [PATCH 2/3] vaapi_encode_h265: Fix setting colour properties

2020-11-02 Thread Mark Thompson
Matching the previous commit for H.264. --- libavcodec/vaapi_encode_h265.c | 34 -- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 316030914c..3e0af17ea5 100644 --- a/libavcodec/v

Re: [FFmpeg-devel] [PATCH v2 5/5] avformat: add amv muxer

2020-11-02 Thread Andreas Rheinhardt
Zane van Iperen: > AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying > the existing AVI muxer with its filth. > > Fixes ticket #747. > > Signed-off-by: Zane van Iperen > --- > MAINTAINERS | 1 + > libavformat/Makefile | 1 + > libavformat/allformats.c

[FFmpeg-devel] [PATCH v2 2/5] avcodec/adpcm_ima_amv: handle odd sample counts

2020-11-02 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 25 ++- tests/ref/fate/adpcm-ima-amv | 312 +-- 2 files changed, 180 insertions(+), 157 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index d34fd6c6e1..d0807cbd98 100644 --- a/l

[FFmpeg-devel] [PATCH v2 5/5] avformat: add amv muxer

2020-11-02 Thread Zane van Iperen
AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying the existing AVI muxer with its filth. Fixes ticket #747. Signed-off-by: Zane van Iperen --- MAINTAINERS | 1 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/amvenc.c | 4

[FFmpeg-devel] [PATCH v2 4/5] avcodec: add adpcm_ima_amv encoder

2020-11-02 Thread Zane van Iperen
Fixes ticket #747. Signed-off-by: Zane van Iperen --- doc/general_contents.texi | 2 +- libavcodec/adpcmenc.c | 58 ++- libavcodec/allcodecs.c| 1 + libavcodec/utils.c| 1 + 4 files changed, 60 insertions(+), 2 deletions(-) diff --git a/doc

[FFmpeg-devel] [PATCH v2 1/5] avcodec/adpcm_ima_amv: restrict to 1 channel

2020-11-02 Thread Zane van Iperen
The format doesn't allow for anything else. Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 5 - libavcodec/utils.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 701b125c47..d34fd6c6e1 100644 --- a/libavcodec/adpc

[FFmpeg-devel] [PATCH v2 0/5] AMV muxing and adpcm_ima_amv encoding support

2020-11-02 Thread Zane van Iperen
Adds support for encoding to adpcm_ima_amv and muxing to AMV. Things to note: - AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying the existing AVI muxer with its filth. - The muxer is extremely pedantic about its streams, this is to not break certain software players. - T

[FFmpeg-devel] [PATCH v2 3/5] avcodec/adpcm_ima_amv: document header format

2020-11-02 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index d0807cbd98..7f2c958d16 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1698,6 +1698,16 @@ static int adpcm_decode_frame(

Re: [FFmpeg-devel] [PATCH 6/6] avformat/concatdec: use av_strstart()

2020-11-02 Thread Michael Niedermayer
On Mon, Nov 02, 2020 at 01:02:14PM +0100, Nicolas George wrote: > Michael Niedermayer (12020-10-31): > > Fixes: out array read > > Fixes: > > 26610/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-5631838049271808 > > > > Found-by: continuous fuzzing process > > https://github.com/google/

Re: [FFmpeg-devel] [PATCH v3 1/4] avformat/apngdec: Return error for incomplete header

2020-11-02 Thread Michael Niedermayer
On Sat, Oct 31, 2020 at 03:16:23PM +0100, Andreas Rheinhardt wrote: > If avio_read() could read anything, it returns the number of bytes read, > even if it could not read as much as the caller desired. > apng_read_header() only checked the return value of its avio_read() calls > for being negative

Re: [FFmpeg-devel] [PATCH] avformat/argo_brp: bail if no video frames

2020-11-02 Thread Michael Niedermayer
On Mon, Nov 02, 2020 at 12:21:03PM +, Zane van Iperen wrote: > Fixes: Assertion failure > Fixes: > 26572/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5166735591997440 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Sign

Re: [FFmpeg-devel] [PATCH] avformat/nut: Store display matrix side data

2020-11-02 Thread Michael Niedermayer
On Sun, Nov 01, 2020 at 10:05:16PM +0100, Matthias Neugebauer wrote: > Stream side data such as display matrix is currently lost when using NUT. > > Signed-off-by: Matthias Neugebauer > --- > libavformat/nutdec.c | 9 + > libavformat/nutenc.c | 18 ++ > 2 files changed, 27

Re: [FFmpeg-devel] [PATCH v5] avcodec: add av1 VAAPI decoder

2020-11-02 Thread Mark Thompson
On 29/10/2020 06:54, Fei Wang wrote: Example cmdline: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -v verbose \ -c:v av1 -i input.ivf -pix_fmt yuv420p -vsync passthrough -f md5 \ -y out.md5 Signed-off-by: Fei Wang --- change: 1.rebase v4 to master. Changelog

[FFmpeg-devel] [PATCH 1/3] vaapi_encode_h264: Fix setting colour properties

2020-11-02 Thread Mark Thompson
The properties should always be set; only the presence flags want to be conditional. Fixes #8959. --- libavcodec/vaapi_encode_h264.c | 34 -- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h2

[FFmpeg-devel] [PATCH 3/3] vaapi_encode_mpeg2: Fix setting colour properties

2020-11-02 Thread Mark Thompson
Follow the same pattern as the previous commits for H.264 and H.265. --- libavcodec/vaapi_encode_mpeg2.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c index b8f1c06d0f..df2c62b8e7 100644 --- a

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Michael Niedermayer
On Mon, Nov 02, 2020 at 03:32:09PM +0100, Paul B Mahol wrote: > On Mon, Nov 2, 2020 at 3:28 PM Paul B Mahol wrote: > > > > > > > On Mon, Nov 2, 2020 at 3:06 PM Michael Niedermayer > > wrote: > > > >> On Mon, Nov 02, 2020 at 11:44:00AM +0100, Paul B Mahol wrote: > >> > On Mon, Nov 2, 2020 at 11:2

Re: [FFmpeg-devel] [PATCH] avformat/dv: fix timestamps of audio packets in case of dropped corrupt audio frames

2020-11-02 Thread Marton Balint
On Mon, 2 Nov 2020, Michael Niedermayer wrote: Please correct me if iam wrong but in cases where no audio is missing or damaged, this would also ignore how much audio is in each packet. So you could have lets say a timestamp difference of excatly 1 second between 2 packets while their is actua

Re: [FFmpeg-devel] [PATCH 6/6] lavfi/src_movie: switch to new decoding API

2020-11-02 Thread Nicolas George
Anton Khirnov (12020-11-02): > --- > libavfilter/src_movie.c | 170 +++- > 1 file changed, 82 insertions(+), 88 deletions(-) Thanks for working on this. It will make switching to activate correctly much easier too. > > diff --git a/libavfilter/src_movie.c b/l

[FFmpeg-devel] [PATCH] avfilter: add adenorm filter

2020-11-02 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi | 27 libavfilter/Makefile | 1 + libavfilter/af_adenorm.c | 308 +++ libavfilter/allfilters.c | 1 + 4 files changed, 337 insertions(+) create mode 100644 libavfilter/af_adenorm.c diff --

Re: [FFmpeg-devel] [PATCH 1/6] tools/enum_options: fix build and add to Makefile

2020-11-02 Thread James Almer
On 11/2/2020 10:17 AM, Anton Khirnov wrote: > --- > Makefile | 3 +++ > tools/Makefile | 2 +- > tools/enum_options.c | 26 +- > 3 files changed, 17 insertions(+), 14 deletions(-) > > diff --git a/Makefile b/Makefile > index c8b548d126..977ad69965 10064

Re: [FFmpeg-devel] [PATCH 2/5] avcodec/magicyuv: Free previous VLC table

2020-11-02 Thread Michael Niedermayer
On Mon, Nov 02, 2020 at 01:41:13AM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: memleak > > Fixes: > > 26788/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MAGICYUV_fuzzer-5184116808744960 > > > > Found-by: continuous fuzzing process > > https://github.com/google/oss-fuz

Re: [FFmpeg-devel] [PATCH 5/5] avformat: add amv muxer

2020-11-02 Thread Andreas Rheinhardt
Zane van Iperen: > On 2/11/20 7:47 pm, Andreas Rheinhardt wrote: > >>> +if (pkt->stream_index == AMV_STREAM_VIDEO) { >>> +/* Save the last packet for padding. */ >>> +av_packet_unref(&amv->vpad); >>> +av_packet_ref(&amv->vpad, pkt); >> >> Missing check. >> > For what sp

[FFmpeg-devel] [PATCH] Added support for expressions main_w, main_h, overlay_w, overlay_h in cuda_overlay filter

2020-11-02 Thread Alex
Signed-off-by: alex_qt <3.1...@ukr.net> --- libavfilter/vf_overlay_cuda.c | 146 -- 1 file changed, 120 insertions(+), 26 deletions(-) diff --git a/libavfilter/vf_overlay_cuda.c b/libavfilter/vf_overlay_cuda.c index 2f0f860e50..636ddbedb0 100644 --- a/libavfilter/

Re: [FFmpeg-devel] [PATCH 2/6] lavfi/lavfutils: switch to the new decoding API

2020-11-02 Thread James Almer
On 11/2/2020 10:17 AM, Anton Khirnov wrote: > --- > libavfilter/lavfutils.c | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c > index a2085ed5ef..f8f8415c80 100644 > --- a/libavfilter/lavfutils.c > +++ b/libav

Re: [FFmpeg-devel] [PATCH 3/6] lavu: add missing stddef.h includes for size_t.

2020-11-02 Thread James Almer
On 11/2/2020 10:17 AM, Anton Khirnov wrote: > --- > libavutil/hash.c| 2 ++ > libavutil/hash.h| 1 + > libavutil/murmur3.c | 2 ++ > libavutil/murmur3.h | 1 + > libavutil/ripemd.c | 1 + > libavutil/ripemd.h | 1 + > 6 files changed, 8 insertions(+) > > diff --git a/libavutil/hash.c b/

Re: [FFmpeg-devel] [PATCH] avformat/dv: fix timestamps of audio packets in case of dropped corrupt audio frames

2020-11-02 Thread Michael Niedermayer
On Sun, Nov 01, 2020 at 09:58:43PM +0100, Marton Balint wrote: > > > On Sun, 1 Nov 2020, Michael Niedermayer wrote: > > > On Sat, Oct 31, 2020 at 05:56:24PM +0100, Marton Balint wrote: > > > Fixes out of sync timestamps in ticket #8762. > > > > > > Signed-off-by: Marton Balint > > > --- > > >

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Paul B Mahol
On Mon, Nov 2, 2020 at 3:28 PM Paul B Mahol wrote: > > > On Mon, Nov 2, 2020 at 3:06 PM Michael Niedermayer > wrote: > >> On Mon, Nov 02, 2020 at 11:44:00AM +0100, Paul B Mahol wrote: >> > On Mon, Nov 2, 2020 at 11:21 AM Michael Niedermayer >> >> > wrote: >> > >> > > On Wed, Oct 07, 2020 at 08:

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Paul B Mahol
On Mon, Nov 2, 2020 at 3:06 PM Michael Niedermayer wrote: > On Mon, Nov 02, 2020 at 11:44:00AM +0100, Paul B Mahol wrote: > > On Mon, Nov 2, 2020 at 11:21 AM Michael Niedermayer > > > wrote: > > > > > On Wed, Oct 07, 2020 at 08:19:12PM +, Paul B Mahol wrote: > > > > ffmpeg | branch: master |

[FFmpeg-devel] [PATCH] [v4] Add support for playing Audible AAXC (.aaxc) files

2020-11-02 Thread Vesselin Bontchev
The AAXC container format is the same as the (already supported) Audible AAX format but it uses a different encryption scheme. Note: audible_key and audible_iv values are variable (per file) and are externally fed. It is possible to extend https://github.com/mkb79/Audible to derive the audible_ke

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Michael Niedermayer
On Mon, Nov 02, 2020 at 11:44:00AM +0100, Paul B Mahol wrote: > On Mon, Nov 2, 2020 at 11:21 AM Michael Niedermayer > wrote: > > > On Wed, Oct 07, 2020 at 08:19:12PM +, Paul B Mahol wrote: > > > ffmpeg | branch: master | Paul B Mahol | Fri Oct 2 > > 12:16:49 2020 +0200| [da5b3d002862d1e1050

[FFmpeg-devel] [PATCH 6/6] lavfi/src_movie: switch to new decoding API

2020-11-02 Thread Anton Khirnov
--- libavfilter/src_movie.c | 170 +++- 1 file changed, 82 insertions(+), 88 deletions(-) diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c index ab12c34f4a..b53f811846 100644 --- a/libavfilter/src_movie.c +++ b/libavfilter/src_movie.c @@ -51,7 +51

[FFmpeg-devel] [PATCH 5/6] doc/examples/transcoding: switch to the new encoding API

2020-11-02 Thread Anton Khirnov
--- doc/examples/transcoding.c | 75 +- 1 file changed, 33 insertions(+), 42 deletions(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 4a45717bea..5aff08c135 100644 --- a/doc/examples/transcoding.c +++ b/doc/examples/transcoding.c

[FFmpeg-devel] [PATCH 4/6] doc/examples/transcoding: stop constantly allocating AVFrames

2020-11-02 Thread Anton Khirnov
Allocate just one and reuse it. --- doc/examples/transcoding.c | 60 -- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index e48837cbd2..4a45717bea 100644 --- a/doc/examples/transcoding.c +

[FFmpeg-devel] [PATCH 1/6] tools/enum_options: fix build and add to Makefile

2020-11-02 Thread Anton Khirnov
--- Makefile | 3 +++ tools/Makefile | 2 +- tools/enum_options.c | 26 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index c8b548d126..977ad69965 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,9 @@ tools/targ

[FFmpeg-devel] [PATCH 2/6] lavfi/lavfutils: switch to the new decoding API

2020-11-02 Thread Anton Khirnov
--- libavfilter/lavfutils.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/libavfilter/lavfutils.c b/libavfilter/lavfutils.c index a2085ed5ef..f8f8415c80 100644 --- a/libavfilter/lavfutils.c +++ b/libavfilter/lavfutils.c @@ -31,7 +31,7 @@ int ff_load_image(uint8

[FFmpeg-devel] [PATCH 3/6] lavu: add missing stddef.h includes for size_t.

2020-11-02 Thread Anton Khirnov
--- libavutil/hash.c| 2 ++ libavutil/hash.h| 1 + libavutil/murmur3.c | 2 ++ libavutil/murmur3.h | 1 + libavutil/ripemd.c | 1 + libavutil/ripemd.h | 1 + 6 files changed, 8 insertions(+) diff --git a/libavutil/hash.c b/libavutil/hash.c index 75edb6db78..d626c31181 100644 --- a/libav

Re: [FFmpeg-devel] [PATCH 5/5] avformat: add amv muxer

2020-11-02 Thread Zane van Iperen
On 2/11/20 7:47 pm, Andreas Rheinhardt wrote: >> +if (pkt->stream_index == AMV_STREAM_VIDEO) { >> +/* Save the last packet for padding. */ >> +av_packet_unref(&amv->vpad); >> +av_packet_ref(&amv->vpad, pkt); > > Missing check. > For what specifically? Afaics av_buffer

Re: [FFmpeg-devel] [PATCH 1/5] avformat/argo_brp: Check block align before use

2020-11-02 Thread Zane van Iperen
On 2/11/20 9:51 pm, Zane van Iperen wrote: > > > > On 2/11/20 9:40 pm, Anton Khirnov wrote: >> >> Quoting Michael Niedermayer (2020-10-30 22:52:02) >>> Fixes: division by 0 >>> Fixes: >>> 26667/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5645146928185344.fuzz >>> >>> Found-by: c

[FFmpeg-devel] [PATCH] avformat/argo_brp: bail if no video frames

2020-11-02 Thread Zane van Iperen
Fixes: Assertion failure Fixes: 26572/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5166735591997440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Zane van Iperen --- libavformat/argo_brp.c | 3 +++ 1 file changed

[FFmpeg-devel] [PATCH] avformat/mov: adjust skip_samples according to seek timestamp

2020-11-02 Thread Matthieu Bouron
Currently skip_samples is set to start_pad if sample_time is lesser or equal to 0. This can cause issues if the stream starts with packets that have negative pts. Calling avformat_seek_file() with ts set to 0 on such streams makes the mov demuxer return the right corresponding packets (near the 0 t

Re: [FFmpeg-devel] [PATCH 6/6] avformat/concatdec: use av_strstart()

2020-11-02 Thread Nicolas George
Michael Niedermayer (12020-10-31): > Fixes: out array read > Fixes: > 26610/clusterfuzz-testcase-minimized-ffmpeg_dem_CONCAT_fuzzer-5631838049271808 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > -

Re: [FFmpeg-devel] [PATCH 4/4] avformat/argo_brp: Check num_frames before using it to compute the duration

2020-11-02 Thread Zane van Iperen
On 26/10/20 9:00 am, Michael Niedermayer wrote: > > Fixes: Assertion failure > Fixes: > 26572/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5166735591997440 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: M

Re: [FFmpeg-devel] [PATCH 1/5] avformat/argo_brp: Check block align before use

2020-11-02 Thread Zane van Iperen
On 2/11/20 9:40 pm, Anton Khirnov wrote: > > Quoting Michael Niedermayer (2020-10-30 22:52:02) >> Fixes: division by 0 >> Fixes: >> 26667/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5645146928185344.fuzz >> >> Found-by: continuous fuzzing process >> https://github.com/google/oss-

Re: [FFmpeg-devel] [PATCH 1/5] avformat/argo_brp: Check block align before use

2020-11-02 Thread Anton Khirnov
Quoting Michael Niedermayer (2020-10-30 22:52:02) > Fixes: division by 0 > Fixes: > 26667/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5645146928185344.fuzz > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Mic

[FFmpeg-devel] [PATCH] Fixing scale2ref filter in case if reference frame is hw frame

2020-11-02 Thread Alex
This path fixing scale2ref filter if reference frame is HW frame.Command for add watermark (resize it based on the main/reference video size: [watermark][scaled]scale2ref=oh*mdar:ih*0.5[watermark2][scaled2] ) on video in case of HW pipeline:>./ffmpeg -init_hw_device cuda=cuda -hwaccel cuda -hwa

Re: [FFmpeg-devel] [PATCH 5/5] avformat: add amv muxer

2020-11-02 Thread Andreas Rheinhardt
Zane van Iperen: > AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying > the existing AVI muxer with its filth. > > Fixes ticket #747. > > Signed-off-by: Zane van Iperen > --- > MAINTAINERS | 1 + > libavformat/Makefile | 1 + > libavformat/allformats.c

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Paul B Mahol
On Mon, Nov 2, 2020 at 11:21 AM Michael Niedermayer wrote: > On Wed, Oct 07, 2020 at 08:19:12PM +, Paul B Mahol wrote: > > ffmpeg | branch: master | Paul B Mahol | Fri Oct 2 > 12:16:49 2020 +0200| [da5b3d002862d1e105002a6dc1567e6551860896] | > committer: Paul B Mahol > > > > avcodec/tiff: d

Re: [FFmpeg-devel] [FFmpeg-cvslog] avcodec/tiff: do not abort decoding if strips are available

2020-11-02 Thread Michael Niedermayer
On Wed, Oct 07, 2020 at 08:19:12PM +, Paul B Mahol wrote: > ffmpeg | branch: master | Paul B Mahol | Fri Oct 2 > 12:16:49 2020 +0200| [da5b3d002862d1e105002a6dc1567e6551860896] | committer: > Paul B Mahol > > avcodec/tiff: do not abort decoding if strips are available > > Even if such fil

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/adpcm_ima_amv: restrict to 1 channel

2020-11-02 Thread Zane van Iperen
On 2/11/20 7:48 pm, Andreas Rheinhardt wrote: > > Zane van Iperen: >> The format doesn't allow for anything else. >> >> Signed-off-by: Zane van Iperen >> --- >> libavcodec/adpcm.c | 5 - >> libavcodec/utils.c | 2 +- >> 2 files changed, 5 insertions(+), 2 deletions(-) >> >> diff --git a

Re: [FFmpeg-devel] [PATCH 1/5] avcodec/adpcm_ima_amv: restrict to 1 channel

2020-11-02 Thread Andreas Rheinhardt
Zane van Iperen: > The format doesn't allow for anything else. > > Signed-off-by: Zane van Iperen > --- > libavcodec/adpcm.c | 5 - > libavcodec/utils.c | 2 +- > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c > index 701b125c47..d3

[FFmpeg-devel] [PATCH 5/5] avformat: add amv muxer

2020-11-02 Thread Zane van Iperen
AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying the existing AVI muxer with its filth. Fixes ticket #747. Signed-off-by: Zane van Iperen --- MAINTAINERS | 1 + libavformat/Makefile | 1 + libavformat/allformats.c | 1 + libavformat/amvenc.c | 4

[FFmpeg-devel] [PATCH 2/5] avcodec/adpcm_ima_amv: handle odd sample counts

2020-11-02 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 25 ++- tests/ref/fate/adpcm-ima-amv | 312 +-- 2 files changed, 180 insertions(+), 157 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index d34fd6c6e1..d0807cbd98 100644 --- a/l

[FFmpeg-devel] [PATCH 3/5] avcodec/adpcm_ima_amv: document header format

2020-11-02 Thread Zane van Iperen
Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index d0807cbd98..7f2c958d16 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1698,6 +1698,16 @@ static int adpcm_decode_frame(

[FFmpeg-devel] [PATCH 4/5] avcodec: add adpcm_ima_amv encoder

2020-11-02 Thread Zane van Iperen
Fixes ticket #747. Signed-off-by: Zane van Iperen --- doc/general_contents.texi | 2 +- libavcodec/adpcmenc.c | 58 ++- libavcodec/allcodecs.c| 1 + libavcodec/utils.c| 1 + 4 files changed, 60 insertions(+), 2 deletions(-) diff --git a/doc

[FFmpeg-devel] [PATCH 1/5] avcodec/adpcm_ima_amv: restrict to 1 channel

2020-11-02 Thread Zane van Iperen
The format doesn't allow for anything else. Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 5 - libavcodec/utils.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 701b125c47..d34fd6c6e1 100644 --- a/libavcodec/adpc

[FFmpeg-devel] [PATCH 0/5] AMV muxing and adpcm_ima_amv encoding support

2020-11-02 Thread Zane van Iperen
Adds support for encoding to adpcm_ima_amv and muxing to AMV. Things to note: - AMV is a hard-coded (and broken) subset of AVI. It's not worth sullying the existing AVI muxer with its filth. - The muxer is extremely pedantic about its streams, this is to not break certain software players. - T