Anton Khirnov
c0c492dd47
doc/developer.texi: extend the argument for submitting patches
...
Stop talking about commercial programs, since this applies to any
downstream user.
2 years ago
Anton Khirnov
26080d1542
doc/developer.texi: improve the introductory text
...
Remove confusing references to "external" vs. "internal" developers.
2 years ago
Anton Khirnov
b58264217b
fftools/ffmpeg_mux_init: drop an always-false check
...
It cannot be true since 1959351aec
. Effectively reverts 6a3833e141
.
2 years ago
Anton Khirnov
13947aff3f
fftools/ffmpeg_mux_init: use av_dict_iterate() where appropriate
2 years ago
Anton Khirnov
19e192eae6
fftools/ffmpeg_mux_init: do not call av{codec,format}_get_class() repeatedly
2 years ago
Anton Khirnov
52380a055b
fftools/ffmpeg_mux_init: move validating codec avoptions to a separate function
2 years ago
Anton Khirnov
0fb7d111e8
fftools/ffmpeg: move OutputStream.max_frames to MuxStream
...
It no longer needs to be visible outside of the muxing code.
2 years ago
Anton Khirnov
25620b69e0
fftools/ffmpeg: stop handling max_frames in do_video_out()
...
Frame limiting is now handled using sync queues. This code prevents the
sync queue from triggering EOF, resulting in unnecessarily many frames
being decoded, filtered, and then discarded.
Found-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
2 years ago
Anton Khirnov
6a8145a4b1
fftools/ffmpeg_mux_init: move more code from of_open() to create_streams()
...
Specificaly, the of_add_attachments() call (which can add attachment
streams to the output) and the check whether the output file contains
any streams. They both logically belong in create_streams().
2 years ago
Anton Khirnov
1b076556c6
fftools/ffmpeg: simplify ost_iter()
...
The inner loop never goes through more than 1 iteration, and so can be
replaced by an if().
Found-by: Andreas Rheinhardt
2 years ago
Paul B Mahol
07357e56a6
avfilter/avf_showspectrum: fix possible hang at EOF
...
May happen when using filter fps option.
2 years ago
Paul B Mahol
a640b2874a
avfilter/af_surround: allow non-power of 2 win_size
2 years ago
Paul B Mahol
404c2955b1
avfilter/af_surround: move upmix before irdft
2 years ago
Paul B Mahol
d770403cac
avfilter/af_surround: refactor some code
2 years ago
Anton Khirnov
822da7a317
fftools/ffmpeg: make demuxing with one file always blocking
2 years ago
Anton Khirnov
c15eb2773a
fftools/ffmpeg_[de]mux: constify all uses of OptionsContext
2 years ago
Anton Khirnov
4119480681
fftools/ffmpeg_mux_init: stop using OptionsContext as storage in copy_metadata()
...
It should be input-only to this code. Will allow making it const in
future commits.
2 years ago
Anton Khirnov
3c7dd5ed37
fftools/ffmpeg_mux_init: drop a duplicated block in copy_metadata()
...
It does the same thing as the block right below it.
2 years ago
Mark Reid
15df8261be
avcodec/tiff: add read support for compressed rgb floating point formats
...
floating point uses a slightly different predictor technique describe here
http://chriscox.org/TIFFTN3d1.pdf
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2 years ago
Aidan MacDonald
a4405cc0cc
avcodec/dvdsub_parser: Fix length check for short packets
...
The DVD subtitle parser handles two types of packets: "normal"
packets with a 16-bit length, and HD-DVD packets that set the
16-bit length to 0 and encode a 32-bit length in the next four
bytes. This implies that HD-DVD packets are at least six bytes
long, but the code didn't actually verify this.
The faulty length check results in an out of bounds read for
zero-length "normal" packets that occur in the input, which are
only 2 bytes long, but get misinterpreted as an HD-DVD packet.
When this happens the parser reads packet_len from beyond the
end of the input buffer. The subtitle stream is not correctly
decoded after this point due to the garbage packet_len.
Fixing this is pretty simple: fix the length check so packets
less than 6 bytes long will not be mistakenly parsed as HD-DVD
packets.
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2 years ago
James Almer
b119b3da1e
fftools/ffprobe: support 2D arrays in print_list_fmt()
...
Should fix undefined behavior.
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Martijn van Beurden
bf6c500cff
libavcodec/flacenc: Enable sample rates > 655350 Hz
...
Also, make use of the full sample rate code table
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
Paul B Mahol
752039a9eb
avfilter/af_surround: add support for commands
2 years ago
Paul B Mahol
64031c5e65
avfilter/af_surround: add focus option
...
And improve angle option handling.
2 years ago
Niklas Haas
c0b93c4f8b
avfilter/vf_libplacebo: support all supported pixfmts
...
This is done only to the inputs, not the outputs, because we always
output vulkan hwframes.
Doing so also requires keeping track of backing textures for non-hwdec
formats, but is otherwise a mostly straightforward change to the format
query function. Special care needs to be taken to avoid crashing on
older libplacebo due to AV_PIX_FMT_RGBF32LE et al.
2 years ago
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.
2 years ago
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>
2 years ago
Paul B Mahol
52f7adfbde
avfilter/af_surround: add forgotten null pointer check
2 years ago
Paul B Mahol
11d744343f
avfilter/af_surround: avoid using doubles
2 years ago
Timo Rothenpieler
eb1e359a14
avcodec/nvenc: use provided constant for max extradata size
2 years ago
Timo Rothenpieler
c7a60124e3
avcodec/nvenc: add forgotten X2RGB10 formats to 10-bit-list
2 years ago
Paul B Mahol
9bbd3b3b17
avfilter/af_surround: check that upmix func ptr is valid
2 years ago
Paul B Mahol
e0fbf89939
avfilter/af_surround: speed up slice threading for stereo upmixing
...
And add stereo->octagonal/8.0 upmix.
2 years ago
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>
2 years ago
Michael Niedermayer
5df8c300a9
avcodec/bonk: actual_run seems not able to become negative
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years ago
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>
2 years ago
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>
2 years ago
Paul B Mahol
2d25f33a7e
avcodec/smcenc: unbreak skip blocks for inter coding
...
When using frames with different linesize.
2 years ago
Paul B Mahol
163f1949ed
avcodec/smcenc: more y<height checks to fix invalid reads
2 years ago
Paul B Mahol
31e1b614f6
avcodec/rpzaenc: stop assuming prev and current frame linesize match
2 years ago
rcombs
5d7de322d4
lavc: bump micro version
...
Needed after adding an AVOption in 9a4b318286
2 years ago
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).
2 years ago
James Almer
84fe53f6e1
avutil/hwcontext_cuda: fix compilation without Vulkan after last commit
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
James Almer
f4aa5c275f
avutil/hwcontext_cuda: fix mixed declarations and code warning
...
Signed-off-by: James Almer <jamrial@gmail.com>
2 years ago
Paul B Mahol
92f9b28ed8
avcodec/rpzaenc: stop accessing out of bounds frame
2 years ago
Paul B Mahol
13c1310975
avcodec/smcenc: stop accessing out of bounds frame
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago
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>
2 years ago