]> git.sesse.net Git - ffmpeg/log
ffmpeg
4 years agotools/target_dec_fuzzer: Adjust ffwavesynth threshold
Michael Niedermayer [Mon, 7 Oct 2019 12:53:28 +0000 (14:53 +0200)]
tools/target_dec_fuzzer: Adjust ffwavesynth threshold

ffwavesynth can produce large amounts of data relatively slowly on very small input

Fixes: Timeout (60sec -> 9sec)
Fixes: 17970/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5689121279836160
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ralf: Skip initializing unused filter variables
Michael Niedermayer [Sat, 5 Oct 2019 17:34:17 +0000 (19:34 +0200)]
avcodec/ralf: Skip initializing unused filter variables

Fixes: left shift of negative value -1
Fixes: 17890/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5643307467669504
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/takdec: Fix overflow with large sample rates
Michael Niedermayer [Sat, 5 Oct 2019 17:52:53 +0000 (19:52 +0200)]
avcodec/takdec: Fix overflow with large sample rates

Fixes: signed integer overflow: 2147483647 + 511 cannot be represented in type 'int'
Fixes: 17899/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5719753322135552
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/filters: fix another typo
Paul B Mahol [Thu, 24 Oct 2019 19:42:00 +0000 (21:42 +0200)]
doc/filters: fix another typo

4 years agoavcodec/interplayvideo: cosmetics
Paul B Mahol [Thu, 24 Oct 2019 13:30:08 +0000 (15:30 +0200)]
avcodec/interplayvideo: cosmetics

4 years agoavfilter: add maskedmin/maskedmax filters
Paul B Mahol [Sun, 20 Oct 2019 18:16:18 +0000 (20:16 +0200)]
avfilter: add maskedmin/maskedmax filters

4 years agoavformat/mpeg: Don't free unintialized pointer
Andreas Rheinhardt [Tue, 22 Oct 2019 13:16:41 +0000 (15:16 +0200)]
avformat/mpeg: Don't free unintialized pointer

In order to fix a potential memleak upon failure, 0b8956b2 made sure that
a buffer given by a pointer was freed upon error. But this pointer was
only initialized upon use and in several cases (Clang gives no fewer
than 13 -Wsometimes-uninitialized warnings) this meant that an
uninitialized pointer was used to free a buffer. So initialize the
pointer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agompegvideo_enc: add intra_penalty option for p frames
Ramiro Polla [Wed, 23 Oct 2019 19:12:32 +0000 (21:12 +0200)]
mpegvideo_enc: add intra_penalty option for p frames

This option allows more control over the use of intra macroblocks in
predictive frames.

By using '-intra_penalty max', intra macroblocks are never used in
predictive frames.

It is useful for glitch artists to generate input material. This option
allows them to split and merge two video files while maintaining fluid
motion from the second video without having intra macroblocks restoring
chunks of the first video.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/icoenc: Add deinit function
Andreas Rheinhardt [Wed, 23 Oct 2019 12:59:44 +0000 (14:59 +0200)]
avformat/icoenc: Add deinit function

Prevents memleaks in situations where the trailer isn't written, e.g.
because of errors during writing the header.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/aiffenc: Use better error codes
Andreas Rheinhardt [Wed, 23 Oct 2019 12:59:40 +0000 (14:59 +0200)]
avformat/aiffenc: Use better error codes

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/mpeg: Add padding to extradata
Andreas Rheinhardt [Tue, 22 Oct 2019 13:16:42 +0000 (15:16 +0200)]
avformat/mpeg: Add padding to extradata

Extradata is supposed to be padded with AV_INPUT_BUFFER_PADDING_SIZE bytes,
yet the VobSub demuxer used av_strdup for the allocation of extradata.
This has been changed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_maskedclamp: add x86 SIMD
Paul B Mahol [Tue, 22 Oct 2019 16:57:14 +0000 (18:57 +0200)]
avfilter/vf_maskedclamp: add x86 SIMD

4 years agoFATE/dnn: add .gitignore
Zhao Zhili [Tue, 15 Oct 2019 16:21:10 +0000 (00:21 +0800)]
FATE/dnn: add .gitignore

Reviewed-by: Guo, Yejun <yejun.guo@intel.com>
4 years agoavcodec/tests: add h265_levels to .gitignore
Zhao Zhili [Tue, 15 Oct 2019 16:21:09 +0000 (00:21 +0800)]
avcodec/tests: add h265_levels to .gitignore

4 years agoavfilter/settb: switch to activate
Paul B Mahol [Sat, 19 Oct 2019 15:01:38 +0000 (17:01 +0200)]
avfilter/settb: switch to activate

Now correctly updates EOF timestamp.

4 years agoavfilter/vf_floodfill: better fix for crash
Paul B Mahol [Wed, 23 Oct 2019 08:17:46 +0000 (10:17 +0200)]
avfilter/vf_floodfill: better fix for crash

4 years agoavfilter/vf_floodfill: add more gray formats
Paul B Mahol [Wed, 23 Oct 2019 08:04:15 +0000 (10:04 +0200)]
avfilter/vf_floodfill: add more gray formats

4 years agoavfilter/vf_deband: add more gray formats
Paul B Mahol [Wed, 23 Oct 2019 07:53:23 +0000 (09:53 +0200)]
avfilter/vf_deband: add more gray formats

4 years agolavfi/bilateral: Clean the option description and unused code
Jun Zhao [Wed, 23 Oct 2019 03:25:40 +0000 (11:25 +0800)]
lavfi/bilateral: Clean the option description and unused code

Clean the option description and unused code.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agoavfilter/vf_lut2: fix typo, correctly support gray14
Paul B Mahol [Wed, 23 Oct 2019 07:44:08 +0000 (09:44 +0200)]
avfilter/vf_lut2: fix typo, correctly support gray14

4 years agoavfilter/vf_bm3d: add gray14 format
Paul B Mahol [Wed, 23 Oct 2019 07:37:18 +0000 (09:37 +0200)]
avfilter/vf_bm3d: add gray14 format

4 years agoavfilter/vf_vaguedenoiser: add more gray formats
Paul B Mahol [Wed, 23 Oct 2019 07:31:09 +0000 (09:31 +0200)]
avfilter/vf_vaguedenoiser: add more gray formats

4 years agoavfilter/transpose: add missing headers
Paul B Mahol [Tue, 22 Oct 2019 17:53:50 +0000 (19:53 +0200)]
avfilter/transpose: add missing headers

4 years agox86/vf_transpose: make ff_transpose_8x8_16_sse2 work on x86_32
James Almer [Mon, 21 Oct 2019 20:06:18 +0000 (17:06 -0300)]
x86/vf_transpose: make ff_transpose_8x8_16_sse2 work on x86_32

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vf_maskedclamp: rewrite using macro
Paul B Mahol [Tue, 22 Oct 2019 16:10:03 +0000 (18:10 +0200)]
avfilter/vf_maskedclamp: rewrite using macro

4 years agoavcodec/libdav1d: fix setting AVFrame reordered_opaque
James Almer [Thu, 17 Oct 2019 23:18:47 +0000 (20:18 -0300)]
avcodec/libdav1d: fix setting AVFrame reordered_opaque

Actually reorder the values.

Should effectively fix ticket #8300.

Tested-by: Andrey Semashev <andrey.semashev@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/atrac9tab: use explicit ATRAC9BlockConfig struct initializers
James Almer [Tue, 22 Oct 2019 13:01:13 +0000 (10:01 -0300)]
avcodec/atrac9tab: use explicit ATRAC9BlockConfig struct initializers

Cosmetic change.

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vf_premultiply: fix signed integer overflow
Paul B Mahol [Tue, 22 Oct 2019 08:38:16 +0000 (10:38 +0200)]
avfilter/vf_premultiply: fix signed integer overflow

Fixes #8324

4 years agoavformat/mpeg: move the header_str free into end label
Steven Liu [Tue, 22 Oct 2019 02:54:36 +0000 (10:54 +0800)]
avformat/mpeg: move the header_str free into end label

fix CID: 1454875

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavcodec/psd: remove unneeded code
Steven Liu [Thu, 10 Oct 2019 07:24:07 +0000 (15:24 +0800)]
avcodec/psd: remove unneeded code

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavcodec/hevcdec: remove unneeded code
Steven Liu [Thu, 10 Oct 2019 07:23:42 +0000 (15:23 +0800)]
avcodec/hevcdec: remove unneeded code

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/segafilmenc: remove unneeded code
Steven Liu [Thu, 10 Oct 2019 07:10:48 +0000 (15:10 +0800)]
avformat/segafilmenc: remove unneeded code

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/matroskaenc: Cosmetics
Andreas Rheinhardt [Tue, 15 Oct 2019 11:17:34 +0000 (13:17 +0200)]
avformat/matroskaenc: Cosmetics

Contains renaming of variables (e.g. mkv_write_cues() contained
variables called tracknum that actually contain the index of a track in
s->streams and not the track number (which can differ in case an
explicit dash track number is set)).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskaenc: Use more appropriate function name
Andreas Rheinhardt [Tue, 15 Oct 2019 11:17:33 +0000 (13:17 +0200)]
avformat/matroskaenc: Use more appropriate function name

mkv_start_new_cluster() actually didn't start a new cluster, but ended
the old one instead and emitted a debug message that it had started a
new cluster. This has been changed: The debug message has been moved to
the place that really starts a new cluster and the function has been
renamed to mkv_end_cluster().

Furthermore, without this debug message the function can be used for
flushing.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskaenc: Remove redundant assert
Andreas Rheinhardt [Tue, 15 Oct 2019 11:17:32 +0000 (13:17 +0200)]
avformat/matroskaenc: Remove redundant assert

The Matroska muxer groups index entries with the same pts together in
order to save a few bytes. Because of Matroska's variable-length length
fields, mkv_write_cues() does this by first finding out how many index
entries will be grouped together before actually writing them.
Currently, it is asserted at both of these stages that the stream index
of the list of designated index entries is valid. But the second assert
is redundant, because the very same index entries have already been
checked.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskaenc: Move track-related fields to mkv_track
Andreas Rheinhardt [Wed, 16 Oct 2019 02:00:56 +0000 (04:00 +0200)]
avformat/matroskaenc: Move track-related fields to mkv_track

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskaenc: Use ffio_free_dyn_buf
Andreas Rheinhardt [Wed, 16 Oct 2019 01:57:09 +0000 (03:57 +0200)]
avformat/matroskaenc: Use ffio_free_dyn_buf

instead of replicating its behaviour.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskaenc: Fix memleak upon failure
Andreas Rheinhardt [Wed, 16 Oct 2019 01:57:08 +0000 (03:57 +0200)]
avformat/matroskaenc: Fix memleak upon failure

The Matroska muxer up until now leaked memory in two scenarios:

1. If an error happened during writing the trailer, as
mkv_write_trailer() returned early without cleaning up.
2. If mkv_write_header() indicated success despite an error in the
underlying AVIOContext. In this case avformat_write_header() returned
the IO error and according to the API the caller is not allowed to call
av_write_trailer(), so that no cleanup happened for the allocations made
in mkv_write_header().

This has been fixed by using a dedicated deinit function.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vsrc_mptestsrc: simplify the code and change the type of frame
Limin Wang [Mon, 21 Oct 2019 10:12:12 +0000 (18:12 +0800)]
avfilter/vsrc_mptestsrc: simplify the code and change the type of frame

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/atrac9dec: Set channels
Michael Niedermayer [Sun, 20 Oct 2019 22:22:46 +0000 (00:22 +0200)]
avcodec/atrac9dec: Set channels

Fixes: null pointer dereference
Fixes: 18341/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5681203490848768
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vsrc_mptestsrc: add options to set the maximum number of frames
Limin Wang [Mon, 21 Oct 2019 10:12:11 +0000 (18:12 +0800)]
avfilter/vsrc_mptestsrc: add options to set the maximum number of frames

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_unsharp: rename config_props -> config_input, link -> inlink
Limin Wang [Mon, 14 Oct 2019 10:27:04 +0000 (18:27 +0800)]
avfilter/vf_unsharp: rename config_props -> config_input, link -> inlink

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/oggenc: free buffered page lists while uninitializing the muxer
James Almer [Mon, 21 Oct 2019 02:38:05 +0000 (23:38 -0300)]
avformat/oggenc: free buffered page lists while uninitializing the muxer

If the trailer is never writen, there could be buffered pages that would leak.

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/flacenc: add a deinit function
James Almer [Mon, 21 Oct 2019 02:44:05 +0000 (23:44 -0300)]
avformat/flacenc: add a deinit function

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/mp3enc: add init and deinit functions
James Almer [Mon, 21 Oct 2019 02:25:53 +0000 (23:25 -0300)]
avformat/mp3enc: add init and deinit functions

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/ttaenc: add a deinit function
James Almer [Mon, 21 Oct 2019 02:24:54 +0000 (23:24 -0300)]
avformat/ttaenc: add a deinit function

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/avienc: add deinit function
James Almer [Sat, 19 Oct 2019 02:47:44 +0000 (23:47 -0300)]
avformat/avienc: add deinit function

Fixes ticket #8302

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat: call AVOutputFormat->deinit() when freeing the context
James Almer [Sat, 19 Oct 2019 02:23:32 +0000 (23:23 -0300)]
avformat: call AVOutputFormat->deinit() when freeing the context

Despite the doxy stating that it's called when the muxer is destroyed,
this was not true in practice. It's only called by av_write_trailer()
and on init() failure.

An AVFormatContext may be closed without writing the trailer if errors
ocurred while muxing packets, so in order to prevent memory leaks, it
should effectively be called when freeing the muxer.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agox86/vf_transpose: fix cpuflags check
James Almer [Mon, 21 Oct 2019 20:01:39 +0000 (17:01 -0300)]
x86/vf_transpose: fix cpuflags check

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vf_transpose: add x86 SIMD
Paul B Mahol [Mon, 21 Oct 2019 14:43:26 +0000 (16:43 +0200)]
avfilter/vf_transpose: add x86 SIMD

4 years agoavfilter/x86/vf_atadenoise: fix comment
Paul B Mahol [Mon, 21 Oct 2019 15:56:45 +0000 (17:56 +0200)]
avfilter/x86/vf_atadenoise: fix comment

4 years agoavfilter/af_join: fix possible memory leaks
Paul B Mahol [Mon, 21 Oct 2019 14:03:22 +0000 (16:03 +0200)]
avfilter/af_join: fix possible memory leaks

Allocation of input frames is independent from
allocation of new input pads.

4 years agoavfilter/af_silencedetect: change mono default to integer literal
Limin Wang [Tue, 8 Oct 2019 15:04:53 +0000 (23:04 +0800)]
avfilter/af_silencedetect: change mono default to integer literal

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
4 years agoavfilter/af_silencedetect: use AV_OPT_TYPE_DURATION
Limin Wang [Tue, 8 Oct 2019 15:04:52 +0000 (23:04 +0800)]
avfilter/af_silencedetect: use AV_OPT_TYPE_DURATION

Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years agoavfilter: add bilateral filter
Paul B Mahol [Sun, 13 May 2018 16:26:50 +0000 (18:26 +0200)]
avfilter: add bilateral filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_nlmeans: round values toward nearest integer
Paul B Mahol [Sun, 20 Oct 2019 19:53:11 +0000 (21:53 +0200)]
avfilter/vf_nlmeans: round values toward nearest integer

Instead of rounding toward zero and thus producing
darker output.

4 years agoavfilter/af_silencedetect: document metadata
Limin Wang [Tue, 8 Oct 2019 15:04:51 +0000 (23:04 +0800)]
avfilter/af_silencedetect: document metadata

Reviewed-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
4 years agoavcodec/alsdec: Check that input space for header exists in read_diff_float_data()
Michael Niedermayer [Fri, 4 Oct 2019 17:35:15 +0000 (19:35 +0200)]
avcodec/alsdec: Check that input space for header exists in read_diff_float_data()

Fixes: Timeout (21sec -> 8sec)
Fixes: 17832/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALS_fuzzer-5737092172218368
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/pjsdec: Check duration for overflow
Michael Niedermayer [Fri, 4 Oct 2019 15:10:38 +0000 (17:10 +0200)]
avformat/pjsdec: Check duration for overflow

Fixes: signed integer overflow: -3 - 9223372036854775807 cannot be represented in type 'long'
Fixes: 17828/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5645915116797952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/agm: Check for reference frame earlier
Michael Niedermayer [Thu, 3 Oct 2019 22:46:08 +0000 (00:46 +0200)]
avcodec/agm: Check for reference frame earlier

Fixes: Timeout (14sec - 120ms)
Fixes: 17824/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5639825457152000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ptx: Check that the input contains at least one line
Michael Niedermayer [Wed, 2 Oct 2019 20:05:52 +0000 (22:05 +0200)]
avcodec/ptx: Check that the input contains at least one line

Fixes: Timeout (19sec -> 44ms)
Fixes: 17816/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PTX_fuzzer-5704459950227456
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/alac: Fix integer overflow in LPC
Michael Niedermayer [Mon, 30 Sep 2019 22:16:20 +0000 (00:16 +0200)]
avcodec/alac: Fix integer overflow in LPC

Fixes: signed integer overflow: 2147483628 + 128 cannot be represented in type 'int'
Fixes: 17783/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALAC_fuzzer-5146470595952640
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/smacker: Fix integer overflows in pred[] in smka_decode_frame()
Michael Niedermayer [Mon, 30 Sep 2019 22:10:47 +0000 (00:10 +0200)]
avcodec/smacker: Fix integer overflows in pred[] in smka_decode_frame()

Fixes: signed integer overflow: -2147481503 + -32732 cannot be represented in type 'int'
Fixes: 17782/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMACKAUD_fuzzer-5769672225456128
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/aliaspixdec: Check input size against minimal picture size
Michael Niedermayer [Mon, 30 Sep 2019 22:06:35 +0000 (00:06 +0200)]
avcodec/aliaspixdec: Check input size against minimal picture size

Fixes: Timeout (15sec -> 72ms)
Fixes: 17774/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALIAS_PIX_fuzzer-5193929107963904
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ffwavesynth: Fix integer overflows in pink noise addition
Michael Niedermayer [Sun, 29 Sep 2019 22:35:15 +0000 (00:35 +0200)]
avcodec/ffwavesynth: Fix integer overflows in pink noise addition

Fixes: signed integer overflow: -1795675744 + -1926578528 cannot be represented in type 'int'
Fixes: 17741/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5131336402075648
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/vc1_block: Fixes integer overflow in vc1_decode_i_block_adv()
Michael Niedermayer [Sat, 28 Sep 2019 19:19:26 +0000 (21:19 +0200)]
avcodec/vc1_block: Fixes integer overflow in vc1_decode_i_block_adv()

Fixes: signed integer overflow: 62220 * 262144 cannot be represented in type 'int'
Fixes: 17145/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5667394743173120
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotools/target_dec_fuzzer: Adjust threshold for DXV
Michael Niedermayer [Sat, 28 Sep 2019 22:37:43 +0000 (00:37 +0200)]
tools/target_dec_fuzzer: Adjust threshold for DXV

Fixes: TImeout (20sec -> 4sec)
Fixes: 17735/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DXV_fuzzer-5723368317255680
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/wmalosslessdec: Check block_align
Michael Niedermayer [Sat, 19 Oct 2019 17:18:18 +0000 (19:18 +0200)]
avcodec/wmalosslessdec: Check block_align

Fixes: NULL pointer dereference
Fixes: 18331/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5652847445671936
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_tile: fix memory leak
Paul B Mahol [Sat, 19 Oct 2019 17:24:52 +0000 (19:24 +0200)]
avfilter/vf_tile: fix memory leak

Fixes #8313

4 years agoavfilter/vf_atadenoise: add support for commands
Paul B Mahol [Sun, 20 Oct 2019 10:07:15 +0000 (12:07 +0200)]
avfilter/vf_atadenoise: add support for commands

4 years agoavfilter/vf_shuffleframes: improve error message
Paul B Mahol [Sun, 20 Oct 2019 09:39:24 +0000 (11:39 +0200)]
avfilter/vf_shuffleframes: improve error message

4 years agoavformat/options: don't call avformat_free_context() within avformat_alloc_context()
James Almer [Sat, 19 Oct 2019 14:58:35 +0000 (11:58 -0300)]
avformat/options: don't call avformat_free_context() within avformat_alloc_context()

avformat_free_context() expects AVFormatContext->internal to not be NULL.

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/nutenc: free all missing dynamic AVIOContext on header writing failure
James Almer [Sat, 19 Oct 2019 17:37:27 +0000 (14:37 -0300)]
avformat/nutenc: free all missing dynamic AVIOContext on header writing failure

Fixes part of ticket #8316

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/af_tremolo: fix heap-buffer overflow
Paul B Mahol [Sat, 19 Oct 2019 17:34:47 +0000 (19:34 +0200)]
avfilter/af_tremolo: fix heap-buffer overflow

Fixes #8317

4 years agoavfilter/vf_fftdnoiz: round toward nearest integer
Paul B Mahol [Sat, 19 Oct 2019 17:07:28 +0000 (19:07 +0200)]
avfilter/vf_fftdnoiz: round toward nearest integer

Instead of rounding toward zero and thus producing
darker output.

4 years agoavfilter/vf_bm3d: round values toward nearest integer
Paul B Mahol [Sat, 19 Oct 2019 16:53:48 +0000 (18:53 +0200)]
avfilter/vf_bm3d: round values toward nearest integer

Instead of rounding toward zero and thus producing
darker output.

4 years agoavfilter/vf_bm3d: forward status back
Paul B Mahol [Sat, 19 Oct 2019 16:45:35 +0000 (18:45 +0200)]
avfilter/vf_bm3d: forward status back

4 years agompeg4_unpack_bframes: Merge close and flush
Andreas Rheinhardt [Wed, 10 Jul 2019 21:08:27 +0000 (23:08 +0200)]
mpeg4_unpack_bframes: Merge close and flush

They are identical now.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/zmbv: Call decode_intra directly
Andreas Rheinhardt [Thu, 17 Oct 2019 12:35:14 +0000 (14:35 +0200)]
avcodec/zmbv: Call decode_intra directly

zmbv has only one function for decoding intra frames, namely
decode_intra; and yet up until now it has been called via a function
pointer. This has been changed.

This also removes spec-incompliant conversions between function pointers
and pointers of type void * and thereby fixes the warning "ISO C forbids
assignment between function pointer and ‘void *’" that GCC emits with
the -pedantic option.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/g729dec: Avoid computing invalid temporary pointers for ff_acelp_weighted_vec...
Michael Niedermayer [Thu, 17 Oct 2019 09:54:12 +0000 (11:54 +0200)]
avcodec/g729dec: Avoid computing invalid temporary pointers for ff_acelp_weighted_vector_sum()

Fixes: Ticket8176
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/g729postfilter: Fix left shift of negative value
Michael Niedermayer [Thu, 17 Oct 2019 09:48:47 +0000 (11:48 +0200)]
avcodec/g729postfilter: Fix left shift of negative value

Fixes: Ticket8176
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_fieldhint: add support for duplicating fields
Paul B Mahol [Sat, 19 Oct 2019 11:08:37 +0000 (13:08 +0200)]
avfilter/vf_fieldhint: add support for duplicating fields

Fixes #7066

4 years agoavfilter/vf_fieldmatch: fix heap-buffer overflow
Paul B Mahol [Sat, 19 Oct 2019 09:56:02 +0000 (11:56 +0200)]
avfilter/vf_fieldmatch: fix heap-buffer overflow

Also fix use of uninitialized values.

Fixes #8239

4 years agoavfilter/vf_decimate: fix memory leaks
Paul B Mahol [Sat, 19 Oct 2019 08:12:09 +0000 (10:12 +0200)]
avfilter/vf_decimate: fix memory leaks

Fixes #8311

4 years agoavfilter/vf_lagfun: fix heap-buffer overflow
Paul B Mahol [Sat, 19 Oct 2019 07:56:53 +0000 (09:56 +0200)]
avfilter/vf_lagfun: fix heap-buffer overflow

Fixes #8310

4 years agoavfilter/vf_datascope: fix heap buffer overflow
Paul B Mahol [Sat, 19 Oct 2019 07:50:53 +0000 (09:50 +0200)]
avfilter/vf_datascope: fix heap buffer overflow

Fixes #8309

4 years agodoc/utils: add hexadecagonal channel layout
Gyan Doshi [Sat, 19 Oct 2019 07:30:36 +0000 (13:00 +0530)]
doc/utils: add hexadecagonal channel layout

4 years agoavformat/sapdec: check av_strdup() return value and fix memleak
Steven Liu [Thu, 10 Oct 2019 02:55:29 +0000 (10:55 +0800)]
avformat/sapdec: check av_strdup() return value and fix memleak

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/mvdec: check av_strdup() return value
Steven Liu [Thu, 10 Oct 2019 02:52:52 +0000 (10:52 +0800)]
avformat/mvdec: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/mtv: check av_strdup() return value
Steven Liu [Thu, 10 Oct 2019 05:47:04 +0000 (13:47 +0800)]
avformat/mtv: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/mpeg: check av_strdup() return value
Steven Liu [Thu, 10 Oct 2019 02:47:22 +0000 (10:47 +0800)]
avformat/mpeg: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/libsrt: check av_strdup() return value and fix memleak
Steven Liu [Thu, 10 Oct 2019 02:43:58 +0000 (10:43 +0800)]
avformat/libsrt: check av_strdup() return value and fix memleak

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/hlsenc: check av_strdup() return value
Steven Liu [Sat, 19 Oct 2019 04:48:49 +0000 (06:48 +0200)]
avformat/hlsenc: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/cinedec: check av_strdup() return value
Steven Liu [Thu, 10 Oct 2019 02:34:38 +0000 (10:34 +0800)]
avformat/cinedec: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/mpegenc: check for stream private data during deinit
James Almer [Sat, 19 Oct 2019 02:14:21 +0000 (23:14 -0300)]
avformat/mpegenc: check for stream private data during deinit

Prevents pointer dereferences when streams were not fully initialized.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/nutenc: don't allocate a dynamic AVIOContext if no index is going to be...
James Almer [Fri, 18 Oct 2019 23:53:10 +0000 (20:53 -0300)]
avformat/nutenc: don't allocate a dynamic AVIOContext if no index is going to be written

Fixes ticket #8295

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vf_shuffleplanes: add mising query_formats()
Paul B Mahol [Fri, 18 Oct 2019 21:19:50 +0000 (23:19 +0200)]
avfilter/vf_shuffleplanes: add mising query_formats()

Fixes #8298

4 years agoavfilter/vf_maskfun: fix memleak
Paul B Mahol [Fri, 18 Oct 2019 19:57:20 +0000 (21:57 +0200)]
avfilter/vf_maskfun: fix memleak

Fixes #8305

4 years agoavfilter/buffersink: cosmetics
Paul B Mahol [Fri, 18 Oct 2019 08:54:05 +0000 (10:54 +0200)]
avfilter/buffersink: cosmetics

4 years agoavfilter/vf_colorspace: fix memmory leaks
Paul B Mahol [Fri, 18 Oct 2019 08:48:22 +0000 (10:48 +0200)]
avfilter/vf_colorspace: fix memmory leaks

Fixes #8303