]> git.sesse.net Git - ffmpeg/log
ffmpeg
4 years agoavcodec/adpcm: Clip predictor for APC
Michael Niedermayer [Thu, 21 Nov 2019 22:02:56 +0000 (23:02 +0100)]
avcodec/adpcm: Clip predictor for APC

Fixes: signed integer overflow: -2147483648 - 13 cannot be represented in type 'int'
Fixes: 18893/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_IMA_APC_fuzzer-5630760442920960
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/targa: Check colors vs. available space
Michael Niedermayer [Thu, 21 Nov 2019 21:43:01 +0000 (22:43 +0100)]
avcodec/targa: Check colors vs. available space

Fixes: Timeout (37sec -> 52ms)
Fixes: 18892/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TARGA_fuzzer-5739537854889984
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 dst
Michael Niedermayer [Sat, 23 Nov 2019 15:36:02 +0000 (16:36 +0100)]
tools/target_dec_fuzzer: Adjust threshold for dst

Fixes: Timeout (400sec -> 14sec)
Fixes: 18989/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5175008116867072
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/dstdec: Use get_ur_golomb_jpegls()
Michael Niedermayer [Mon, 30 Sep 2019 22:43:03 +0000 (00:43 +0200)]
avcodec/dstdec: Use get_ur_golomb_jpegls()

Fixes: shift exponent -4 is negative
Fixes: 17793/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5766088435957760
Fixes: 18989/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DST_fuzzer-5175008116867072
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/wmavoice: Check remaining input in parse_packet_header()
Michael Niedermayer [Sat, 23 Nov 2019 08:18:12 +0000 (09:18 +0100)]
avcodec/wmavoice: Check remaining input in parse_packet_header()

Fixes: Infinite loop
Fixes: 18914/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAVOICE_fuzzer-5731902946541568
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: Fix 2 overflows in mclms
Michael Niedermayer [Wed, 20 Nov 2019 21:05:40 +0000 (22:05 +0100)]
avcodec/wmalosslessdec: Fix 2 overflows in mclms

Fixes: signed integer overflow: 2038337026 + 109343477 cannot be represented in type 'int'
Fixes: 18886/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5673660505653248
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/decode: Fix integer overflow in max_samples check
Michael Niedermayer [Wed, 20 Nov 2019 20:13:01 +0000 (21:13 +0100)]
avcodec/decode: Fix integer overflow in max_samples check

Fixes: signed integer overflow: 1677721600 * 32 cannot be represented in type 'int'
Fixes: 18885/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FFWAVESYNTH_fuzzer-5741242185154560
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/wmaprodec: Fixes integer overflow with 32bit samples
Michael Niedermayer [Wed, 20 Nov 2019 19:34:55 +0000 (20:34 +0100)]
avcodec/wmaprodec: Fixes integer overflow with 32bit samples

Fixes: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 18860/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAPRO_fuzzer-5755223125786624
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/adpcm: Fix invalid shift in xa_decode()
Michael Niedermayer [Wed, 20 Nov 2019 18:13:09 +0000 (19:13 +0100)]
avcodec/adpcm: Fix invalid shift in xa_decode()

Fixes: left shift of negative value -1
Fixes: 18859/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_XA_fuzzer-5748474213040128
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/wmavoice: Add FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Mon, 18 Nov 2019 13:41:54 +0000 (14:41 +0100)]
avcodec/wmavoice: Add FF_CODEC_CAP_INIT_CLEANUP

Fixes: memleaks
Fixes: 18855/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAVOICE_fuzzer-5687647317524480
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: Fix several integer issues
Michael Niedermayer [Mon, 18 Nov 2019 13:22:57 +0000 (14:22 +0100)]
avcodec/wmalosslessdec: Fix several integer issues

Fixes: shift exponent -1 is negative (and others)
Fixes: 18852/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5660855295541248
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 that padding bits is not more than sample bits
Michael Niedermayer [Mon, 18 Nov 2019 11:49:25 +0000 (12:49 +0100)]
avcodec/wmalosslessdec: Check that padding bits is not more than sample bits

Fixes: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 18817/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5713317180211200
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/iff: Skip overflowing runs in decode_delta_d()
Michael Niedermayer [Mon, 18 Nov 2019 08:45:29 +0000 (09:45 +0100)]
avcodec/iff: Skip overflowing runs in decode_delta_d()

Fixes: Timeout (107sec - 75ms>
Fixes: 18812/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-6295585225441280
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/apedec: Set error on error in ape_decode_value_3860()
Michael Niedermayer [Mon, 18 Nov 2019 07:51:20 +0000 (08:51 +0100)]
avcodec/apedec: Set error on error in ape_decode_value_3860()

Fixes: Timeout (unknown -> 15sec)
Fixes: 18808/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5677586072207360
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/pnm: Check that the header is not truncated
Michael Niedermayer [Sat, 14 Dec 2019 18:19:57 +0000 (19:19 +0100)]
avcodec/pnm: Check that the header is not truncated

Fixes: Ticket8430
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mp3_header_decompress_bsf: Check sample_rate_index
Michael Niedermayer [Fri, 13 Dec 2019 23:37:27 +0000 (00:37 +0100)]
avcodec/mp3_header_decompress_bsf: Check sample_rate_index

Fixes: out of array read
Fixes: 19309/clusterfuzz-testcase-minimized-ffmpeg_BSF_MP3_HEADER_DECOMPRESS_fuzzer-5651002950942720
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/x86/vf_interlace: always use unaligned movs
Marton Balint [Fri, 6 Dec 2019 22:01:27 +0000 (23:01 +0100)]
avfilter/x86/vf_interlace: always use unaligned movs

Fixes crashes in command lines such as:

ffmpeg -f lavfi -i testsrc2=704x576:r=50,interlace,pad=720:576:8 -f null none

Related to ticket #6491.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavfilter/vf_interlace: do not interlace already interlaced frames
Marton Balint [Fri, 6 Dec 2019 10:02:36 +0000 (11:02 +0100)]
avfilter/vf_interlace: do not interlace already interlaced frames

The filter used to work this way before it was merged into tinterlace.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavfilter/vf_tinterlace: add support for bypassing already interlaced frames
Marton Balint [Fri, 6 Dec 2019 10:01:11 +0000 (11:01 +0100)]
avfilter/vf_tinterlace: add support for bypassing already interlaced frames

The old interlace filter worked this way before it was merged with tinterlace.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavfilter/vf_interlace: restore lowpass mode constants
Marton Balint [Fri, 6 Dec 2019 09:35:41 +0000 (10:35 +0100)]
avfilter/vf_interlace: restore lowpass mode constants

The documentation still mentions numerical constants in addition to textual
ones. It is also wrong to use distinct modes as flags and it disallows us to
actually use the flags field for real flags in the future.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agolavu/pixfmt: Cosmetics, remove wrong end-of-comment markers.
Carl Eugen Hoyos [Sat, 14 Dec 2019 15:09:41 +0000 (16:09 +0100)]
lavu/pixfmt: Cosmetics, remove wrong end-of-comment markers.

4 years agolavc/pnmdec: Fix 16bit decoding.
Carl Eugen Hoyos [Fri, 13 Dec 2019 18:10:15 +0000 (19:10 +0100)]
lavc/pnmdec: Fix 16bit decoding.

Regression since cdb5479c
Reported by irc user tTh from Mixart-Myrys

4 years agoavcodec/simple_idct_template: fix integer overflow
Paul B Mahol [Fri, 13 Dec 2019 14:21:19 +0000 (15:21 +0100)]
avcodec/simple_idct_template: fix integer overflow

4 years agoavcodec/cbs_av1_syntax_template: Check num_y_points
Michael Niedermayer [Wed, 11 Dec 2019 21:03:50 +0000 (22:03 +0100)]
avcodec/cbs_av1_syntax_template: Check num_y_points

"It is a requirement of bitstream conformance that num_y_points is less than or equal to 14."

Fixes: index 24 out of bounds for type 'uint8_t [24]'
Fixes: 19282/clusterfuzz-testcase-minimized-ffmpeg_BSF_AV1_FRAME_MERGE_fuzzer-5747424845103104
Note, also needs a23dd33606d5

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: jamrial
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoconvert_from_tensorflow.py: add support when kernel size is 1*1 with one input/output...
Guo, Yejun [Fri, 22 Nov 2019 07:50:04 +0000 (15:50 +0800)]
convert_from_tensorflow.py: add support when kernel size is 1*1 with one input/output channel (gray image)

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
4 years agoavfilter/vf_dnn_processing: refine code for better naming
Guo, Yejun [Fri, 22 Nov 2019 07:49:57 +0000 (15:49 +0800)]
avfilter/vf_dnn_processing: refine code for better naming

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
4 years agofate/cbs: use the rawvideo muxer for AV1 tests
James Almer [Thu, 12 Dec 2019 01:14:22 +0000 (22:14 -0300)]
fate/cbs: use the rawvideo muxer for AV1 tests

The IVF muxer autoinserts the av1_metadata filter unconditionally, which is
not desirable for these tests.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavfilter/vf_datascope: add decimal output
Paul B Mahol [Fri, 13 Dec 2019 11:47:51 +0000 (12:47 +0100)]
avfilter/vf_datascope: add decimal output

4 years agoconfigure: Check for the SetDllDirectory and GetModuleHandle functions
Martin Storsjö [Wed, 11 Dec 2019 20:53:28 +0000 (22:53 +0200)]
configure: Check for the SetDllDirectory and GetModuleHandle functions

These functions aren't available when building for the restricted
UWP/WinRT/WinStore API subsets.

Normally when building in this mode, one is probably only building
the libraries, but being able to build ffmpeg.exe still is useful
(and a ffmpeg.exe targeting these API subsets still can be run
e.g. in wine, for testing).

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agocheckasm: af_afir: Use a dynamic tolerance depending on values
Martin Storsjö [Wed, 11 Dec 2019 09:15:11 +0000 (11:15 +0200)]
checkasm: af_afir: Use a dynamic tolerance depending on values

As the values generated by av_bmg_get can be arbitrarily large
(only the stddev is specified), we can't use a fixed tolerance.
Calculate a dynamic tolerance (like in float_dsp from 38f966b2222db),
based on the individual steps of the calculation.

This fixes running this test with certain seeds, when built with
clang for mingw/x86_32.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavfilter: Fix type in av_log for random_seed in cellauto and life
Michael Niedermayer [Sat, 7 Dec 2019 09:24:04 +0000 (10:24 +0100)]
avfilter: Fix type in av_log for random_seed in cellauto and life

Fixes CID 1456556 / 1456555

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/v210dec: move the stride read after its fully initialized
Michael Niedermayer [Sun, 1 Dec 2019 22:26:47 +0000 (23:26 +0100)]
avcodec/v210dec: move the stride read after its fully initialized

Fixes: out of array read
Fixes: 19129/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5068171023482880
Maybe fixes: 19130/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_V210_fuzzer-5637264407527424

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/utils.c: fix code indentations
Linjie Fu [Wed, 11 Dec 2019 08:52:01 +0000 (16:52 +0800)]
lavc/utils.c: fix code indentations

Introduced since 4b4a02b8.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/mips: simplify the switch code
Linjie Fu [Wed, 11 Dec 2019 08:48:03 +0000 (16:48 +0800)]
lavc/mips: simplify the switch code

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat: Don't free old extradata before ff_alloc/get_extradata
Andreas Rheinhardt [Wed, 11 Dec 2019 11:21:07 +0000 (12:21 +0100)]
avformat: Don't free old extradata before ff_alloc/get_extradata

These functions already free it themselves before they allocate the new
extradata.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat: Forward errors where possible
Andreas Rheinhardt [Tue, 10 Dec 2019 21:59:53 +0000 (22:59 +0100)]
avformat: Forward errors where possible

It is not uncommon to find code where the caller thinks to know better
what the return value should be than the callee. E.g. something like
"if (av_new_packet(pkt, size) < 0) return AVERROR(ENOMEM);". This commit
changes several instances of this to instead forward the actual error.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/rtpdec_hevc: Don't reimplement ff_alloc_extradata
Andreas Rheinhardt [Tue, 10 Dec 2019 21:59:52 +0000 (22:59 +0100)]
avformat/rtpdec_hevc: Don't reimplement ff_alloc_extradata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/apngdec: Don't free extradata manually
Andreas Rheinhardt [Tue, 10 Dec 2019 21:59:47 +0000 (22:59 +0100)]
avformat/apngdec: Don't free extradata manually

The extradata will be freed automatically when the corresponding stream
gets freed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/apngdec: Make sure that extradata is zero-padded
Andreas Rheinhardt [Tue, 10 Dec 2019 21:59:46 +0000 (22:59 +0100)]
avformat/apngdec: Make sure that extradata is zero-padded

Zeroing the padding has been forgotten.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/mov: Use ff_alloc_extradata for dvdsub extradata
Andreas Rheinhardt [Tue, 10 Dec 2019 21:59:45 +0000 (22:59 +0100)]
avformat/mov: Use ff_alloc_extradata for dvdsub extradata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/x265: set preferred_transfer_characteristics for HLG
Zhong Li [Wed, 4 Dec 2019 14:24:09 +0000 (14:24 +0000)]
lavc/x265: set preferred_transfer_characteristics for HLG

"HEVC HDR UHDTV Bitstreams using HLG10 shall also contain the
alternative_transfer_characteristics SEI message. The
alternative_transfer_characteristics SEI message shall be inserted on
the HEVC DVB_RAP, and preferred_transfer_characteristics shall be set
equal to "18", indicating Recommendation ITU-R BT. 2100 [45] HLG
system."

Signed-off-by: Zhong Li <zhongli_dev@126.com>
4 years agolavc/qsvenc: add Tiles encode support for HEVC
Linjie Fu [Tue, 26 Nov 2019 03:56:18 +0000 (11:56 +0800)]
lavc/qsvenc: add Tiles encode support for HEVC

Add -tile_rows and -tile_cols option to specify the number of tile rows
and columns for ICL+ (gen 11) platform.

A tile must wholly contain all the slices within it. Slices cannot cross
tile boundaries. So the slice number would be implicitly resized to the
max(nSlice, nTile).

Example:
    ffmpeg -v verbose -hwaccel qsv -init_hw_device qsv=hw
    -filter_hw_device hw -f rawvideo -s:v 1920x1080 -i ./input.nv12 -vf
    format=nv12,hwupload=extra_hw_frames=64 -c:v hevc_qsv -tile_rows 2
    -tile_cols 2 -slices 4 -y output.h265

Also dump the actual quantity of encoded tiled rows and columns in run
time.

Fix the enhancement #8400.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
4 years agolavf/movenc: cosmetics
Yuki Tsuchiya [Thu, 12 Dec 2019 14:02:04 +0000 (23:02 +0900)]
lavf/movenc: cosmetics

Signed-off-by: Yuki Tsuchiya <Yuki.Tsuchiya@sony.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoChangelog: add entry about MPEG-H 3D Audio support in mp4
James Almer [Thu, 12 Dec 2019 15:03:31 +0000 (12:03 -0300)]
Changelog: add entry about MPEG-H 3D Audio support in mp4

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4
Yuki Tsuchiya [Thu, 12 Dec 2019 14:02:03 +0000 (23:02 +0900)]
lavf/isom: support for demuxing and remuxing of MPEG-H 3D Audio in MP4

Implemented according to the specification at https://www.iso.org/standard/69561.html
The 'mhm1' sample entry is registered with MP4RA, which is defined as MHAS encapsulated single stream MPEG-H 3D Audio.
'MHAS' stands for MPEG-H audio stream, which contains encoded audio data and corresponds metadata for decoding.
This patch enables extracting the MHAS bitstream from MP4 and remuxing into MP4.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavc: add MPEG-H 3D Audio codec id
Yuki Tsuchiya [Thu, 12 Dec 2019 14:02:02 +0000 (23:02 +0900)]
lavc: add MPEG-H 3D Audio codec id

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavc/codec_desc: introduce AV_CODEC_PROP_INTRA_ONLY flag to audio codec
Yuki Tsuchiya [Thu, 12 Dec 2019 14:02:01 +0000 (23:02 +0900)]
lavc/codec_desc: introduce AV_CODEC_PROP_INTRA_ONLY flag to audio codec

Introduce AV_CODEC_PROP_INTRA_ONLY flag to audio codec as well as video codec to support non intra-only audio codec.

Signed-off-by: Yuki Tsuchiya <Yuki.Tsuchiya@sony.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/mlp_parser: mark sync frames as key frames
James Almer [Thu, 12 Dec 2019 12:32:07 +0000 (09:32 -0300)]
avcodec/mlp_parser: mark sync frames as key frames

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agortsp: Use AVERROR() with errno.h error codes for error returns
Martin Storsjö [Wed, 11 Dec 2019 12:13:21 +0000 (14:13 +0200)]
rtsp: Use AVERROR() with errno.h error codes for error returns

This particular function is only required to return nonzero on
errors, but use the common AVERROR() pattern for consistency.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agofate: Fix use of target_path/target_samples
Martin Storsjö [Wed, 11 Dec 2019 20:52:59 +0000 (22:52 +0200)]
fate: Fix use of target_path/target_samples

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agofate: Fix dependencies to sample files to use local paths
Martin Storsjö [Wed, 11 Dec 2019 20:52:50 +0000 (22:52 +0200)]
fate: Fix dependencies to sample files to use local paths

These dependencies are evaluted by make and must be expressed with
the paths as in the local filesystem.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agofate/cbs: update the two film grain cbs_av1 tests
James Almer [Thu, 12 Dec 2019 00:59:07 +0000 (21:59 -0300)]
fate/cbs: update the two film grain cbs_av1 tests

They were missed in the previous commit.

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128
James Almer [Wed, 11 Dec 2019 21:54:38 +0000 (18:54 -0300)]
avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128

Taking into account the code

fb(2, ar_coeff_lag);
num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1);
if (current->num_y_points)
    num_pos_chroma = num_pos_luma + 1;
else
    num_pos_chroma = num_pos_luma;

Max value for ar_coeff_lag is 3 (two bits), for num_pos_luma 24, and for
num_pos_chroma 25.

Both ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128 may have up to
num_pos_chroma values.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agofate: Use a oneoff test for the tremolo filter
Martin Storsjö [Mon, 9 Dec 2019 20:57:44 +0000 (22:57 +0200)]
fate: Use a oneoff test for the tremolo filter

The tremolo filter uses floating point internally, and uses
multiplication factors derived from sin(fmod()), neither of
which is bitexact for use with framecrc.

This fixes running this test when built with for mingw/x86_32
with clang.

In this case, a 1 ulp difference in the output from fmod() would
end up in an output from the filter that differs by 1 ulp, but
which makes the lrint() in swresample/audioconvert.c round in a
different direction.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agocheckasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparing
Martin Storsjö [Tue, 10 Dec 2019 12:39:02 +0000 (14:39 +0200)]
checkasm: float_dsp: Scale FLT/DBL_EPSILON sufficiently when comparing

As the values generated by av_bmg_get can be arbitrarily large
(only the stddev is specified), we can't use a fixed tolerance.

This matches what was done for test_vector_dmul_scalar in
38f966b2222db.

This fixes the float_dsp checkasm test for some seeds, when built
with clang for mingw/x86_32.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agonetwork: Define ENOTCONN as WSAENOTCONN if not defined
Martin Storsjö [Wed, 11 Dec 2019 12:18:43 +0000 (14:18 +0200)]
network: Define ENOTCONN as WSAENOTCONN if not defined

This fixes compilation with old mingw.org toolchains, which has got
much fewer errno.h entries.

Signed-off-by: Martin Storsjö <martin@martin.st>
4 years agoavcodec/cbs_av1: rename enable_intraintra_compound flag
Fei Wang [Wed, 11 Dec 2019 01:54:54 +0000 (09:54 +0800)]
avcodec/cbs_av1: rename enable_intraintra_compound flag

rename enable_intraintra_compound to enable_interintra_compound,
which keep same as AV1 sepc(v1.0.0-errata1).

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/iff: Use ff_alloc_extradata
Andreas Rheinhardt [Tue, 10 Dec 2019 01:41:45 +0000 (02:41 +0100)]
avformat/iff: Use ff_alloc_extradata

Besides improved readability it also zeroes the padding which has been
forgotten here.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/flvenc: Don't reimplement ff_alloc_extradata
Andreas Rheinhardt [Tue, 10 Dec 2019 01:41:44 +0000 (02:41 +0100)]
avformat/flvenc: Don't reimplement ff_alloc_extradata

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/apc: Remove unnecessary resetting of flags
Andreas Rheinhardt [Tue, 10 Dec 2019 01:41:43 +0000 (02:41 +0100)]
avformat/apc: Remove unnecessary resetting of flags

The packet a demuxer receives is freshly initialized, hence it is
unnecessary to reset any flags on them (as none are set), yet apc did
this.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/scale_eval: remove redundant mathematical constants
Gyan Doshi [Tue, 10 Dec 2019 13:54:30 +0000 (19:24 +0530)]
avfilter/scale_eval: remove redundant mathematical constants

Even though removed from vf_scale in 3b316f9f22, they were reintroduced
when scale.c, now scale_eval.c, was split off in 037bb4021c

4 years agoavformat/cache: rename the class name fro Cache to cache
Steven Liu [Wed, 4 Dec 2019 09:17:18 +0000 (17:17 +0800)]
avformat/cache: rename the class name fro Cache to cache

liuqideMacBook-Pro:build liuqi$ ffmpeg --help full | grep cache
cannot find cache protocol options.

after patch:
bogon:dash liuqi$ ./ffmpeg --help full | grep cache
cache AVOptions:
can find the cache AVOptions after patch.

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agoavformat/hlsenc: remove duplicate code block
Steven Liu [Fri, 29 Nov 2019 05:07:02 +0000 (13:07 +0800)]
avformat/hlsenc: remove duplicate code block

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
4 years agolavf/tls_openssl: support both pre-1.1.0 and post-1.1.0 init
Jun Zhao [Tue, 10 Dec 2019 09:41:56 +0000 (17:41 +0800)]
lavf/tls_openssl: support both pre-1.1.0 and post-1.1.0 init

supporting both pre-1.1.0 and post-1.1.0 version of the OpenSSL
library as the link:
https://wiki.openssl.org/index.php/Library_Initialization

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agoconfigure: add OPENSSL_init_ssl check if pkg-config fail
macweng [Tue, 10 Dec 2019 09:32:33 +0000 (17:32 +0800)]
configure: add OPENSSL_init_ssl check if pkg-config fail

fix when pkg-config fail and openssl > 1.1.0 --enable-openssl fail,
the root cause is check_lib can't found the SSL_library_init().

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: macweng <macweng@tencent.com>
4 years agolavf/libsrt: enable other encryption parameters
Jun Zhao [Sun, 1 Dec 2019 13:09:13 +0000 (21:09 +0800)]
lavf/libsrt: enable other encryption parameters

Enable the SRTO_ENFORCEDENCRYPTION/SRTO_KMREFRESHRATE/
SRTO_KMPREANNOUNCE for srt encryption control.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agolavf/libsrt: add linger parameter to libsrt
Jun Zhao [Sun, 1 Dec 2019 06:03:37 +0000 (14:03 +0800)]
lavf/libsrt: add linger parameter to libsrt

add linger parameter to libsrt, it's setting the number of seconds
that the socket waits for unsent data when closing.

Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agoavcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST
Fei Wang [Wed, 11 Dec 2019 01:37:40 +0000 (09:37 +0800)]
avcodec/cbs_av1: avoid reading trailing bits when obu type is OBU_TILE_LIST

Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/rmdec: Initialize and sanity check offset in ivr_read_header()
Michael Niedermayer [Fri, 15 Nov 2019 22:00:51 +0000 (23:00 +0100)]
avformat/rmdec: Initialize and sanity check offset in ivr_read_header()

Fixes: signed integer overflow: -9223372036854775808 - 17 cannot be represented in type 'long'
Fixes: 18768/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5674385247830016
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 agoswscale/swscale_unscaled: add AV_PIX_FMT_GBRAP10 for LE and BE conversion wrapper
Limin Wang [Thu, 14 Nov 2019 13:46:23 +0000 (21:46 +0800)]
swscale/swscale_unscaled: add AV_PIX_FMT_GBRAP10 for LE and BE conversion wrapper

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/agm: Do not allow MVs out of the picture area as no edge is allocated
Michael Niedermayer [Sat, 2 Nov 2019 07:35:39 +0000 (08:35 +0100)]
avcodec/agm: Do not allow MVs out of the picture area as no edge is allocated

Fixes: out of array access
Fixes: 18499/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AGM_fuzzer-5749038406434816
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: Set FF_CODEC_CAP_INIT_CLEANUP
Michael Niedermayer [Wed, 30 Oct 2019 22:31:51 +0000 (23:31 +0100)]
avcodec/wmalosslessdec: Set FF_CODEC_CAP_INIT_CLEANUP

Fixes: memleaks
Fixes: 18429/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-6210814364614656
Fixes: 18722/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMALOSSLESS_fuzzer-5680535690543104
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/apedec: Fix 2 integer overflows
Michael Niedermayer [Thu, 14 Nov 2019 15:38:36 +0000 (16:38 +0100)]
avcodec/apedec: Fix 2 integer overflows

Fixes: signed integer overflow: 2119056926 - -134217728 cannot be represented in type 'int'
Fixes: 18728/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5747539563511808
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/wmaprodec: Set packet_loss when we error out on a sanity check
Michael Niedermayer [Tue, 12 Nov 2019 19:25:00 +0000 (20:25 +0100)]
avcodec/wmaprodec: Set packet_loss when we error out on a sanity check

Fixes: left shift of negative value -34
Fixes: 18719/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMAPRO_fuzzer-5642658173419520
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/wmaprodec: Check offset
Michael Niedermayer [Tue, 12 Nov 2019 19:06:35 +0000 (20:06 +0100)]
avcodec/wmaprodec: Check offset

Fixes: index 33280 out of bounds for type 'float [32768]'
Fixes: 18718/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XMA2_fuzzer-5635373899710464
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/truemotion2: Fix 2 integer overflows in tm2_low_res_block()
Michael Niedermayer [Tue, 12 Nov 2019 17:47:52 +0000 (18:47 +0100)]
avcodec/truemotion2: Fix 2 integer overflows in tm2_low_res_block()

Fixes: signed integer overflow: 1778647621 + 574372924 cannot be represented in type 'int'
Fixes: 18692/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-6248679635943424
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/wmaprodec: Check if the channel sum of all internal contexts match the external
Michael Niedermayer [Tue, 12 Nov 2019 17:39:08 +0000 (18:39 +0100)]
avcodec/wmaprodec: Check if the channel sum of all internal contexts match the external

Fixes: NULL pointer dereference
Fixes: 18689/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XMA1_fuzzer-5715114640015360
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/truespeech: Fix an integer overflow in truespeech_synth()
Michael Niedermayer [Thu, 14 Nov 2019 15:44:10 +0000 (16:44 +0100)]
avcodec/truespeech: Fix an integer overflow in truespeech_synth()

Fixes: signed integer overflow: 2147483188 + 2048 cannot be represented in type 'int'
Fixes: 18741/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUESPEECH_fuzzer-5748950460268544
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 agoRemove redundant ;
Michael Niedermayer [Sat, 7 Dec 2019 23:20:11 +0000 (00:20 +0100)]
Remove redundant ;

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/id3v2: Fix double-free on error
Andreas Rheinhardt [Sun, 10 Nov 2019 04:07:28 +0000 (05:07 +0100)]
avformat/id3v2: Fix double-free on error

ff_id3v2_parse_priv_dict() uses av_dict_set() with the flags
AV_DICT_DONT_STRDUP_KEY and AV_DICT_DONT_STRDUP_VAL. In this case both
key and value are freed on error (and owned by the destination
dictionary on success), so that freeing them again on error is a
double-free and therefore forbidden. But it nevertheless happened.

Fixes CID 1452489 and 1452421.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter: rename scale.c,h to scale_eval
Gyan Doshi [Sun, 8 Dec 2019 11:12:36 +0000 (16:42 +0530)]
avfilter: rename scale.c,h to scale_eval

scale.c is too generic; scale_eval is more representative

4 years agofate/matroska: Add a test for propagating flac channel layouts
Andreas Rheinhardt [Sun, 8 Dec 2019 20:44:53 +0000 (21:44 +0100)]
fate/matroska: Add a test for propagating flac channel layouts

contained in Vorbis comments in the CodecPrivate of flac tracks.
Moreover, it also tests header removal compression.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agotools/target_dec_fuzzer: Also fuzz request_channel_layout
Michael Niedermayer [Sat, 7 Dec 2019 19:23:25 +0000 (20:23 +0100)]
tools/target_dec_fuzzer: Also fuzz request_channel_layout

This should improve coverage

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/scale.c: factorize ff_scale_eval_dimensions
Gyan Doshi [Mon, 2 Dec 2019 15:41:21 +0000 (21:11 +0530)]
avfilter/scale.c: factorize ff_scale_eval_dimensions

Adjustment of evaluated values shifted to ff_adjust_scale_dimensions
Shifted code for force_original_aspect_ratio and force_divisble_by from
vf_scale so it is now available for scale_cuda, scale_npp and
scale_vaapi as well.

4 years agoavformat/matroskadec: Add a fate test for CodecPrivate compression
Andreas Rheinhardt [Sat, 7 Dec 2019 16:35:10 +0000 (17:35 +0100)]
avformat/matroskadec: Add a fate test for CodecPrivate compression

This test contains a track with zlib compressed CodecPrivate in addition
to compressed frames; the former was unchecked before.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/atrac9dec: Check q_unit_cnt more completely before using it to access at9_tab...
Michael Niedermayer [Tue, 3 Dec 2019 20:33:18 +0000 (21:33 +0100)]
avcodec/atrac9dec: Check q_unit_cnt more completely before using it to access at9_tab_band_ext_group

Fixes: index 8 out of bounds for type 'const uint8_t [8][3]'
Fixes: 19127/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5709394985091072
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 agoMAINTAINERS: add myself as libxavs2 maintainer
hwrenx [Sat, 12 Oct 2019 01:28:44 +0000 (09:28 +0800)]
MAINTAINERS: add myself as libxavs2 maintainer

Signed-off-by: hwrenx <hwrenx@126.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate/matroska: fix dependencies for fate-matroska-prores-zlib test
James Almer [Sat, 7 Dec 2019 16:30:18 +0000 (13:30 -0300)]
fate/matroska: fix dependencies for fate-matroska-prores-zlib test

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agofate/matroska: add a demux test for ProRes using zlib compression
James Almer [Sat, 7 Dec 2019 15:23:20 +0000 (12:23 -0300)]
fate/matroska: add a demux test for ProRes using zlib compression

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/matroskadec: Fix use-after-free when demuxing ProRes
Andreas Rheinhardt [Fri, 6 Dec 2019 23:16:19 +0000 (00:16 +0100)]
avformat/matroskadec: Fix use-after-free when demuxing ProRes

ProRes in Matroska is supposed to not contain the first atom header
(containing a size field and the tag "icpf") and therefore the Matroska
demuxer has to recreate it; this involves an allocation and copy, of
course. Whether the old buffer (containing the data without the atom
header) needs to be freed or not depends upon whether it is what was
directly read (in which case it is owned by an AVBuffer) or whether it
has been allocated when reversing the track's content compression (e.g.
zlib compression) that Matroska supports.

So there are three pointers involved: The one pointing to the directly
read data (owned by the AVBuffer), the one pointing to the currently
valid data (which coincides with the former if no content compression
needed to be reverted) and the one pointing to the new data with the
first atom header. The check for whether to free the second of these is
simply whether the first two are different.

This works mostly, but there is a complication: Some muxers don't strip
the first atom header away and in this case, it is also not reinserted
and no new buffer is allocated; instead, the second and the third
pointers agree. In this case, one must never free the second buffer.
Yet it is currently done if the track is e.g. zlib compressed.
This commit fixes this.

This is a regression since b8e75a2a.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavf/rtmpproto: Don't unref uninitialized buffers
Jun Zhao [Tue, 3 Dec 2019 09:50:45 +0000 (17:50 +0800)]
lavf/rtmpproto: Don't unref uninitialized buffers

This happens if ffurl_open_whitelist fails and stream is unset.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agolavfi/avf_showspectrum: Fix the memory leak in error handle path
Jun Zhao [Tue, 3 Dec 2019 10:16:24 +0000 (18:16 +0800)]
lavfi/avf_showspectrum: Fix the memory leak in error handle path

Fix the memory leak in error handle path.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
4 years agolavc/cbs_h2645: Fix incorrect max size of nalu unit
Andriy Gelman [Fri, 6 Dec 2019 16:03:02 +0000 (11:03 -0500)]
lavc/cbs_h2645: Fix incorrect max size of nalu unit

In the worst case the startcode prefix has 4 bytes.

This fixes a trigerred assertion:
Assertion dp <= max_size failed at libavcodec/cbs_h2645.c:1451

Found-by:libFuzzer
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
4 years agoavformat/libsrt: change tlpktdrop, nakreport, messageapi options to boolean type
Limin Wang [Fri, 20 Sep 2019 11:17:27 +0000 (19:17 +0800)]
avformat/libsrt: change tlpktdrop, nakreport, messageapi options to boolean type

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mvha: Check remaining space when reading VLC table probabilities
Michael Niedermayer [Thu, 5 Dec 2019 23:07:17 +0000 (00:07 +0100)]
avcodec/mvha: Check remaining space when reading VLC table probabilities

Fixes: Infinite loop
Fixes: 19183/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MVHA_fuzzer-5666216765292544
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/vsrc_life: Fix for random_seed type
Limin Wang [Fri, 22 Nov 2019 01:50:38 +0000 (09:50 +0800)]
avfilter/vsrc_life: Fix for random_seed type

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vsrc_cellauto: Fix for random_seed type
Limin Wang [Fri, 22 Nov 2019 01:50:37 +0000 (09:50 +0800)]
avfilter/vsrc_cellauto: Fix for random_seed type

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_yaepblur: add yaepblur filter
leozhang [Mon, 25 Nov 2019 09:53:05 +0000 (17:53 +0800)]
avfilter/vf_yaepblur: add yaepblur filter

Signed-off-by: leozhang <leozhang@qiyi.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibswscale/swscale_unscaled.c: remove redundant code
Ting Fu [Thu, 5 Dec 2019 03:10:43 +0000 (11:10 +0800)]
libswscale/swscale_unscaled.c: remove redundant code

Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/libsrt: fix for the memory leak if passphrase has been configured by option
Limin Wang [Fri, 20 Sep 2019 11:17:28 +0000 (19:17 +0800)]
avformat/libsrt: fix for the memory leak if passphrase has been configured by option

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>