Michael Niedermayer
69eb8197af
tools/target_dec_fuzzer: Adjust threshold for rka
...
Fixes: Timeout
Fixes: 57993/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RKA_fuzzer-5825782785376256
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
cb8180aa66
avcodec/hevc_ps: Check depth to be within 8 to 16
...
Fixes: assertion failure in bitreader
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-627318668066816
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
e2e34c7731
avcodec/wavarc: Check order before using it to write the list
...
Fixes: out of array access
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6247711015043072
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6487578428964864
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6651587794960384
Fixes: 45982/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVARC_fuzzer-6686265824378880
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
957106a24d
avcodec/bonk: decode multiple passes in intlist_read() at once
...
This makes the worst case much faster
Fixes: Timeout
Fixes: 51363/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BONK_fuzzer-5660734784143360
Fixes: 57957/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BONK_fuzzer-5874095467397120
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
e734e16544
avcodec/cavsdec: Check bits left before picture allocation
...
Fixes: Timeout
Fixes: 57893/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CAVS_fuzzer-5091726540013568
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
f6dffe6fc4
tools/target_dec_fuzzer: Adjust threshold for APE
...
Fixes: Timeout
Fixes: 57889/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5262308950802432
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
b2a3279dbe
avcodec/apedec: Factor constant sign out of loop in long_filter_high_3800()
...
930 -> 850 cycles
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
eb768a75f8
avcodec/apedec: Move pointer instead of copying each element in delay in long_filter_high_3800()
...
~1000 -> 930 cycles
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
Michael Niedermayer
b614388056
tools/target_dec_fuzzer: Adjust threshold for FMVC
...
Fixes: Timeout
Fixes: 56753/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FMVC_fuzzer-5115163557888000
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2023-05-01 00:48:32 +02:00
James Almer
45fc89bb14
avcodec/hevc_ps: use get_ue_golomb() for some SPS Screen Content Coding extension fields
...
Also remove the _minus1 part of the name to be in line with the rest of the
decoder.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-04-30 18:29:34 -03:00
James Almer
0275d99427
avcodec/parser: fill avctx dimensions if unset
...
This allows the usage of codecs in builds that have a parser but no decoders
for remuxing scenarios with raw sources.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-04-30 18:25:24 -03:00
Paul B Mahol
7b2851b290
avfilter/af_asdr: add support for threads
2023-04-30 12:38:02 +02:00
Paul B Mahol
4f63e049a2
avfilter/af_asdr: add timeline support
2023-04-30 12:38:02 +02:00
Paul B Mahol
a47bd6d3d8
avfilter/af_asdr: set output frame duration
2023-04-30 12:38:02 +02:00
Paul B Mahol
a2f4adf680
avfilter: add arls filter
2023-04-30 11:34:35 +02:00
Paul B Mahol
f247a3d82d
avfilter/af_adynamicequalizer: add precision option
2023-04-30 11:32:45 +02:00
James Almer
41dd50ad0d
avcodec/hevc_ps: use get_{ue,se}_golomb() for some PPS Range extension fields
...
Signed-off-by: James Almer <jamrial@gmail.com>
2023-04-28 20:15:57 -03:00
James Almer
df3fd3accd
avcodec/hevc_ps: use get_ue_golomb() for some PPS Screen Content Coding extension fields
...
Also remove the _minus8 part of the name to be in line with the rest of the
decoder, and fix the storage type for pps_palette_predictor_initializer,
to support hbd values.
Signed-off-by: James Almer <jamrial@gmail.com>
2023-04-28 20:15:57 -03:00
Paul B Mahol
5564ba49a1
avfilter/af_adynamicequalizer: refactor code to gain small speedup
2023-04-28 23:31:25 +02:00
Paul B Mahol
153aaae457
avfilter/af_adynamicequalizer: factor detection filter code
2023-04-28 23:31:25 +02:00
Paul B Mahol
51504cf279
avfilter/af_adynamicequalizer: add dftype option
...
Useful for filter selection for detection control.
2023-04-28 23:31:25 +02:00
James Almer
1b7c13e1a4
fftools/ffmpeg_filter: fix leak of AVIOContext in read_binary()
...
It was only being freed on failure.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
2023-04-28 13:46:13 -03:00
Anton Khirnov
af8be7bf43
lavf/dauddec: set timebase to 1/samplerate
...
Prevents lavf from generating inexact timestamps with the default
timebase of 1/90000.
2023-04-28 14:31:55 +02:00
Ting Fu
78f95f1088
lavfi/dnn: Remove DNN native backend
...
According to discussion in
https://etherpad.mit.edu/p/FF_dev_meeting_20221202 and the proposal in
http://ffmpeg.org/pipermail/ffmpeg-devel/2022-December/304534.html ,
the DNN native backend should be removed at first step.
All the DNN native backend related codes are deleted.
Signed-off-by: Ting Fu <ting.fu@intel.com>
2023-04-28 11:07:41 +08:00
Ting Fu
a9fb141719
lavfi/dnn: Modified DNN native backend related tools and docs.
...
Will remove native backend, so change the default backend in filters,
and also remove the python scripts which generate native model file.
Signed-off-by: Ting Fu <ting.fu@intel.com>
2023-04-28 11:07:41 +08:00
Ting Fu
7ed6f28a7c
lavfi/dnn: modify dnn interface for removing native backend
...
Native backend will be removed in following commits, so change the
dnn interface and modify the error message in it first.
Signed-off-by: Ting Fu <ting.fu@intel.com>
2023-04-28 11:07:40 +08:00
Paul B Mahol
4e57a0f35a
avfilter/afir_template: avoid multiplications if memcpy is enough
2023-04-27 22:53:13 +02:00
Paul B Mahol
19148a5b9f
avfilter: add FIR equalizer coefficients source filter
2023-04-27 21:45:57 +02:00
Paul B Mahol
595f0cbb4a
avcodec/smacker: do not use NULL for av_log()
2023-04-27 21:38:21 +02:00
Paul B Mahol
44c8f7df03
avformat/adtsenc: do not pass NULL to av_log()
2023-04-27 21:38:21 +02:00
Paul B Mahol
97befd7fcb
avcodec/interplayacm: do not use NULL for av_log()
2023-04-27 18:34:22 +02:00
Niklas Haas
e3143703e9
avfilter/vf_libplacebo: strip ICC profiles on CSP change
...
Not doing so is an obvious oversight - the ICC profile is tied to the
original colorspace, so if we change it, we should definitely strip this
information.
We should probably also have an extra option to control whether the ICC
profile should be stripped, ignored, or applied, but for now this fixes
an existing bug.
2023-04-26 15:36:10 +02:00
Niklas Haas
54126920fc
doc/filters/libplacebo: add vaapi interop example
...
Some testing revealed this to be a very efficient and reliable method of
ingesting GPU frames into libplacebo, so it's a good idea to give as an
example.
2023-04-26 15:36:10 +02:00
Niklas Haas
4fa691b761
doc/filters/libplacebo: remove outdated example
...
This example being first is now misleading because round-tripping
through hwdownload/hwupload is neither required nor recommended. Also,
the comment about avoiding format conversion is unnecessary because
`libplacebo` will now inherit the input frame format by default.
2023-04-26 15:36:10 +02:00
Derek Buitenhuis
f7d64881f8
mov: Do not blindly disable advanced edit lists if use_mfra_for is set
...
This was a bug/mistake in dae3679a9b
.
use_mfra_for by defintion only has an effect on fragmented MP4 files,
making the check not only redundant, but also broken if a user used
the option globally (i.e. set on non-fragmented MP4s).
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2023-04-25 20:44:23 +01:00
Paul B Mahol
8b0ec740cb
avfilter/af_afir: fix remaining artifacts on IR switch
2023-04-25 21:22:15 +02:00
Paul B Mahol
bee265e5d5
avfilter/af_afir: add way to control loading interval of impulses
2023-04-25 21:22:15 +02:00
Paul B Mahol
1835f884b7
avfilter/af_afir: make IR switching work also with minp != maxp
2023-04-25 21:22:15 +02:00
Marton Balint
2f8690c5d4
avdevice/decklink_enc: fix operator precedence in create_s337_payload
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
412274c0d2
doc/muxers: reorder and cleanup mov muxer options
...
Make various movflags grouped together similar to how it is done for other
options.
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
ace9459c41
tests: do not override movflags defaults
...
It does not matter if the default is 0, but still it is cleaner that way.
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
f2d0138f70
avformat/smoothstreamingenc: do not override movflag defaults
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
8d8feea0a6
avformat/movenc: factorize determining mdhd/mvhd/tkhd version
...
Also make duration check for mvhd more consistent with the others, write
version 1 of mvhd if duration is at least INT32_MAX instead of UINT32_MAX.
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
5cdbf817c9
avformat/mov: restrict unix timestamp hack to version 0 mdhd/mvhd
...
Commit 23eeffcd48
added a hack to support invalid
files where the creation date was encoded as a classic unix timestamp. Let's
reduce the scope of the hack by only applying it to version 0 mdhd/mvhd atoms.
Also warn the user of such possibly broken files.
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Marton Balint
bbb885e6a5
avformat/mov: factorize reading creation time metadata
...
Signed-off-by: Marton Balint <cus@passwd.hu>
2023-04-24 23:00:50 +02:00
Paul B Mahol
a0cb29261c
avfilter/af_afir: cache xfade coefficients
2023-04-24 22:30:55 +02:00
Carl Eugen Hoyos
0b352e350e
avcodec/mjpegdec: support more pixel formats
...
Support pixel formats 0x11412100, 0x11311100, and 0x41211100, and add
logic to perform 4x horizontal upsampling. This should fix various JPEG
files found in Ticket #8930 .
Co-authored-by: <leo.izen@gmail.com>
2023-04-24 16:22:52 -04:00
Anton Khirnov
11872522b1
fftools/ffmpeg_filter: reindent after previous commit
2023-04-24 16:56:06 +02:00
Anton Khirnov
cc7a8ddf56
fftools/ffmpeg: move freeing a filtergraph into a separate function
2023-04-24 16:56:06 +02:00
Anton Khirnov
eb9ce9de3b
fftools/ffmpeg: move filtering functions to ffmpeg_filter
2023-04-24 16:56:06 +02:00