[FFmpeg-devel] [PATCH] avformat/hls: Use av_packet_move_ref() for packet ownership transfer

2019-11-30 Thread Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt --- libavformat/hls.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 21353bbad7..f60396f246 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2201,9 +2201,8 @@ static int hls_read_packet(

Re: [FFmpeg-devel] [PATCH v5 2/4] lavc/libxavs2: optimize data access

2019-11-30 Thread Michael Niedermayer
On Sat, Nov 30, 2019 at 01:21:25PM +0800, hwren wrote: > > > > > > > > > > At 2019-11-30 02:39:07, "Michael Niedermayer" wrote: > >On Mon, Oct 14, 2019 at 09:22:43PM +0800, hwren wrote: > >> Optimize data access from multiplication to iteration. > >> > >> Signed-off-by: hwren > >> --- >

[FFmpeg-devel] [PATCH 1/3] avcodec/iff: Check that video_size is large enough for the read parameters

2019-11-30 Thread Michael Niedermayer
video is allocated before parameters like bpp are read. Fixes: out of array access Fixes: 19084/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5718556033679360 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: M

[FFmpeg-devel] [PATCH 2/3] avcodec/g729dec: Check for KELVIN && 6k4

2019-11-30 Thread Michael Niedermayer
This combination would assume different block sizes throughout the code so its better to error out. Fixes: signed integer overflow: -1082385168 * 2 cannot be represented in type 'int' Fixes: 19110/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ACELP_KELVIN_fuzzer-5643993950191616 Signed-off-

[FFmpeg-devel] [PATCH 3/3] avcodec/wmadec: Keep track of exponent initialization per channel

2019-11-30 Thread Michael Niedermayer
Fixes: division by 0 Fixes: 19123/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAV2_fuzzer-5655493121146880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/wma.h| 2 +- libavcodec/wm

Re: [FFmpeg-devel] [PATCH v2] lavc/extract_extradata: Use bytestream api

2019-11-30 Thread James Almer
On 11/30/2019 10:30 AM, Andriy Gelman wrote: > From: Andriy Gelman > > Signed-off-by: Andriy Gelman > --- > Resending based on Andreas's comments to use unsafe version of the writer > (because buffer sizes are precalculated) > > libavcodec/extract_extradata_bsf.c | 27 +

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself to libavfilter/dnn

2019-11-30 Thread Zhong Li
Guo, Yejun 于2019年11月30日周六 下午12:32写道: > > Signed-off-by: Guo, Yejun > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 7f60ef0..5d02520 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -369,6 +369,8 @@ Filters: > Sources: >vsrc

[FFmpeg-devel] [PATCH v2] lavc/extract_extradata: Use bytestream api

2019-11-30 Thread Andriy Gelman
From: Andriy Gelman Signed-off-by: Andriy Gelman --- Resending based on Andreas's comments to use unsafe version of the writer (because buffer sizes are precalculated) libavcodec/extract_extradata_bsf.c | 27 +-- 1 file changed, 17 insertions(+), 10 deletions(-) diff -

Re: [FFmpeg-devel] [PATCH] avcodec/extract_extradata_bsf: Don't unref uninitialized buffers

2019-11-30 Thread James Almer
On 11/30/2019 6:12 AM, Paul B Mahol wrote: > On 11/30/19, Andreas Rheinhardt wrote: >> This happens if allocating extradata fails and s->remove is unset. >> >> Signed-off-by: Andreas Rheinhardt >> --- >> libavcodec/extract_extradata_bsf.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions

Re: [FFmpeg-devel] [PATCH] avcodec/extract_extradata_bsf: Don't unref uninitialized buffers

2019-11-30 Thread Paul B Mahol
On 11/30/19, Andreas Rheinhardt wrote: > This happens if allocating extradata fails and s->remove is unset. > > Signed-off-by: Andreas Rheinhardt > --- > libavcodec/extract_extradata_bsf.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/extract_extradata_b

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: add myself to libavfilter/dnn

2019-11-30 Thread Liu Steven
> 在 2019年11月30日,下午12:24,Guo, Yejun 写道: > > Signed-off-by: Guo, Yejun > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 7f60ef0..5d02520 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -369,6 +369,8 @@ Filters: > Sources: > vs