Niklas Haas
be13812a23
avfilter/vf_libplacebo: init vulkan device in query_format
...
Instead of doing it ad-hoc in `filter_frame`. This is not a huge change
on its own, but paves the way for adding support for more formats in the
future, in particular formats other than AV_PIX_FMT_VULKAN.
2022-11-15 16:47:55 +01:00
Cosmin Stejerean
3b375a0c5c
lavfi/vf_dnn_processing.c: Fix missing AV_PIX_FMT_GRAY8
...
Has been removed by mistake in 2003e32f62
, readd it to the switch cases.
Signed-off-by: Thilo Borgmann <thilo.borgmann@mail.de>
2022-11-15 13:42:58 +01:00
Paul B Mahol
52f7adfbde
avfilter/af_surround: add forgotten null pointer check
2022-11-15 10:42:30 +01:00
Paul B Mahol
11d744343f
avfilter/af_surround: avoid using doubles
2022-11-15 10:42:30 +01:00
Timo Rothenpieler
eb1e359a14
avcodec/nvenc: use provided constant for max extradata size
2022-11-15 01:32:56 +01:00
Timo Rothenpieler
c7a60124e3
avcodec/nvenc: add forgotten X2RGB10 formats to 10-bit-list
2022-11-14 23:10:20 +01:00
Paul B Mahol
9bbd3b3b17
avfilter/af_surround: check that upmix func ptr is valid
2022-11-14 22:20:44 +01:00
Paul B Mahol
e0fbf89939
avfilter/af_surround: speed up slice threading for stereo upmixing
...
And add stereo->octagonal/8.0 upmix.
2022-11-14 22:04:14 +01:00
Michael Niedermayer
104b516a13
avcodec/bonk: step cannot become 0 without overflowing which is undefined
...
also the original reference code does not contain a 0 check
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-14 21:52:51 +01:00
Michael Niedermayer
5df8c300a9
avcodec/bonk: actual_run seems not able to become negative
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-14 21:52:51 +01:00
Michael Niedermayer
00b489b168
avcodec/bonk: Remove special 32bit case from read_uint_max()
...
This case seems not to match the reference decoder and it also
seems not reachable
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-14 21:52:51 +01:00
bwang30
3ab11dc5bb
libavfilter/x86/vf_convolution: add sobel filter optimization and unit test with intel AVX512 VNNI
...
This commit enabled assembly code with intel AVX512 VNNI and added unit test for sobel filter
sobel_c: 4537
sobel_avx512icl 2136
Signed-off-by: bwang30 <bin.wang@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
2022-11-14 10:04:16 +08:00
Paul B Mahol
2d25f33a7e
avcodec/smcenc: unbreak skip blocks for inter coding
...
When using frames with different linesize.
2022-11-13 00:52:19 +01:00
Paul B Mahol
163f1949ed
avcodec/smcenc: more y<height checks to fix invalid reads
2022-11-13 00:19:57 +01:00
Paul B Mahol
31e1b614f6
avcodec/rpzaenc: stop assuming prev and current frame linesize match
2022-11-13 00:19:57 +01:00
rcombs
5d7de322d4
lavc: bump micro version
...
Needed after adding an AVOption in 9a4b318286
2022-11-12 13:40:45 -06:00
rcombs
9a4b318286
lavc/libaribb24: add default_profile option
...
This allows decoding of streams that don't have a profile tagged
(e.g. ones that were remuxed improperly).
2022-11-12 13:38:05 -06:00
James Almer
84fe53f6e1
avutil/hwcontext_cuda: fix compilation without Vulkan after last commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-11-12 15:54:53 -03:00
James Almer
f4aa5c275f
avutil/hwcontext_cuda: fix mixed declarations and code warning
...
Signed-off-by: James Almer <jamrial@gmail.com>
2022-11-12 15:52:10 -03:00
Paul B Mahol
92f9b28ed8
avcodec/rpzaenc: stop accessing out of bounds frame
2022-11-12 16:15:57 +01:00
Paul B Mahol
13c1310975
avcodec/smcenc: stop accessing out of bounds frame
2022-11-12 15:23:11 +01:00
Andreas Rheinhardt
bfab87a61d
avfilter/vf_fftdnoiz: Check return value of av_tx_init()
...
Should fix Coverity issue #1500329 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-12 13:36:31 +01:00
Andreas Rheinhardt
c787eab395
avfilter/af_afir: Check return value of av_tx_init()
...
Should fix Coverity issue #1516762 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-12 13:35:45 +01:00
Andreas Rheinhardt
36d0550bc9
avfilter/vf_fftfilt: Check return value of av_tx_init()
...
Should fix Coverity issue #1516765 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-12 13:33:58 +01:00
Andreas Rheinhardt
b6fcf3a617
avfilter/af_surround: Check return value of av_tx_init()
...
Should fix Coverity issue #1516766 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-12 13:24:35 +01:00
Peter Ross
b653352bd8
avcodec/siren: indent
2022-11-12 11:23:04 +11:00
Andreas Rheinhardt
c124981b79
avutil/cast5: Avoid undefined shift of uint32_t by 32 places
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-11 12:24:23 +01:00
Andreas Rheinhardt
e2d397a9ef
avcodec/mpeg4data: Move ff_mpeg4_resync_prefix to its only user
...
This array is only ever useful to a decoder.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-11 12:24:23 +01:00
Andreas Rheinhardt
f56ca21dd4
avcodec/h261dec: Don't update block_index unnecessarily
...
block_index is write-only for the H.261 decoder, so
don't update it by calling ff_update_block_index().
Instead use a function of our own to set/update dest.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-11 12:24:23 +01:00
Andreas Rheinhardt
e559f8428f
avcodec: Remove unnecessary fft, dct inclusions
...
Also remove some internal.h inclusions which have been
unnecessarily added recently.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-11 12:22:47 +01:00
Michael Niedermayer
8e59e72041
avcodec/bonk: steplet cannot become negative
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-10 21:14:23 +01:00
Michael Niedermayer
3263185225
avcodec/bonk: Check step against overflow
...
No testcase
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-10 21:14:23 +01:00
Michael Niedermayer
9f00286c4c
avcodec/bonk: Simplify read_uint_max()
...
The max == 0 case can be removed too but i left it as 50% of the cases use it
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-10 21:14:23 +01:00
Michael Niedermayer
f4df49eb48
avcodec/bonk: Use unsigned in predictor_calc_error() to avoid undefined overflows
...
Fixes: signed integer overflow: 22 * -2107998208 cannot be represented in type 'int'
Fixes: 51363/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BONK_fuzzer-5660734784143360
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>
2022-11-10 21:14:22 +01:00
Michael Niedermayer
024c5b4ab4
avcodec/dts2pts_bsf: Check ctx for NULL before ff_cbs_flush()
...
Fixes: null pointer dereference
Fixes: 52155/clusterfuzz-testcase-minimized-ffmpeg_BSF_DTS2PTS_fuzzer-5760107527143424
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-11-10 21:14:22 +01:00
Paul B Mahol
8e96319674
avfilter/af_dynaudnorm: add curve option
2022-11-10 19:16:05 +01:00
Paul B Mahol
a0c7c9d636
avfilter/f_ebur128: add quiet framelog mode
2022-11-10 19:15:53 +01:00
Dmitrii Ovchinnikov
9b13078c6a
MAINTAINERS: add myself as amfenc* maintainer
...
Due to the lack of an active AMF maintainer at the moment, as well
as plans to add the av1 encoder and other improvements of AMF,
I added myself to the maintainers. Timely review and merging
patches targeting AMF integration should improve support
of AMD GPUs and APUs in FFmpeg.
For the last couple of years I have been working on AMF related
patches to ffmpeg and other open source projects.
2022-11-10 16:28:07 +01:00
erankor
6043352bd9
libx265: support ATSC A/53 captions
...
added a new option 'a53cc' (on by default, as in libx264) for rendering
AV_FRAME_DATA_A53_CC as hevc sei payloads.
the code is a blend of the libx265.c code for writing
AV_FRAME_DATA_SEI_UNREGISTERED with the libx264.c code for writing atsc
a/53 payloads.
2022-11-10 16:28:07 +01:00
Timo Rothenpieler
939273d3b4
avcodec/nvenc: remove unsupported AV1 High Profile
2022-11-10 15:26:43 +01:00
Timo Rothenpieler
e7fbdda64e
avcodec/nvenc: fix AV1 darWidth/Height calculation
...
nvenc uses the darWidth/Height fields for the AV1 render_width/height
instead, so a different calculation is needed.
2022-11-10 14:51:31 +01:00
Paul B Mahol
05721c5df8
avfilter/vf_thumbnail: add slice threading support
2022-11-10 14:52:48 +01:00
Andreas Rheinhardt
65f3bc9e7e
avcodec/clearvideo: Avoid allocations when decoding tiles
...
Up until now, the ClearVideo decoder separates parsing tiles
and actually using the parsed information: The information is
instead stored in structures which are constantly allocated
and freed. This commit changes this to use the information
immediately, avoiding said allocations. This e.g. reduced
the amount of allocations for [1] from 2,866,462 to 24,720.
For said sample decoding speed improved by 143%.
[1]: https://samples.ffmpeg.org/V-codecs/UCOD/AccordianDance-300.avi
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-10 00:39:43 +01:00
Andreas Rheinhardt
165682a6d4
avcodec/clearvideo: Use const where appropriate
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-10 00:39:43 +01:00
Andreas Rheinhardt
c2966ae14c
avcodec/clearvideo: Redo updating predicition
...
This is in preparation for further commits.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-10 00:39:43 +01:00
Andreas Rheinhardt
a7a783a5c5
avcodec/clearvideo: Move tile_do_block() upwards
...
Will avoid a forward-declaration later.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-10 00:39:43 +01:00
Andreas Rheinhardt
4e6ca99c36
avcodec/clearvideo: Remove unnecessary level parameter
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-10 00:39:43 +01:00
Andreas Rheinhardt
a7ccfdc0d7
avfilter/vf_hqdn3d: Fix left-shift of negative numbers
...
Affected filter-hqdn3d and filter-hqdn3d-sample FATE-tests.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-09 17:39:00 +01:00
Andreas Rheinhardt
cf57147da1
avfilter/phase_template: Fix left-shift of negative numbers
...
Affected the filter-phase FATE-test.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-09 17:39:00 +01:00
Andreas Rheinhardt
e72e8ec515
avfilter/vf_qp: Don't store NAN in int
...
Affected the filter-pp2 FATE-test.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-11-09 17:39:00 +01:00