Andreas Rheinhardt
44a893f09c
avcodec/xfacedec: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
dbdad78b40
avcodec/xan: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
85e1d469af
avcodec/xan: Cleanup generically on init failure
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
13f10dc15e
avcodec/yuv4dec: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
ced33a2cde
avcodec/y41penc: Mark encoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
b509692c62
avcodec/y41pdec: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
c53f39abc3
avcodec/yop: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
b143f8c26a
avcodec/cljrdec: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
a6bed40865
avcodec/loco: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
5ff030f922
avcodec/pcm: Mark decoders as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
5634ce234a
avcodec/pcm: Make encoders init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
6643eaaa30
avcodec/adpcmenc: Mark encoders as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
87a5d9821f
avcodec/adpcm: Mark decoders as init-threadsafe
They don't modify any global state
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
868368aa38
avcodec/cdtoons: Mark decoder as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
6d4b969515
avcodec/a64multienc: Mark encoders as init-threadsafe
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Paul B Mahol
51f8848e36
avfilter/af_stereotools: add support for commands
5 years ago
Paul B Mahol
eebf19ccd8
avfilter/af_stereotools: add timeline support
5 years ago
Paul B Mahol
456146356a
avfilter/af_stereotools: add two more modes
5 years ago
Marton Balint
87c1b74233
fftools/cmdutils: also print warnings when using -sinks and -sources
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
a6f6726a81
avdevice/decklink: warn about too old decklink API version
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
acaf6c625b
avdevice/decklink_enc: simplify usage of buffercount type
Also remove some leftover declaration of CreateDeckLinkIteratorInstance().
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
ff373bb4a8
avdevice/decklink_dec: add support for 50/60 fps timecode
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
eca12f4d5a
avutil/timecode: add av_timecode_init_from_components
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
Marton Balint
2d90d51c56
avutil/timecode: allow drop frame timecodes for multiples of 30000/1001 fps
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years ago
James Almer
53b4550bdd
avutil/film_grain_params: fix doxy for ar_coeff_* fields
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
Andreas Rheinhardt
0639f5c294
avcodec/pthread_slice: Don't use static variable, fix race
ff_slice_thread_init() uses a static variable to hold a function
pointer, although the value of said pointer needn't be saved between
different runs of this function at all.
The reason for this being so is probably that said pointer points to
a static function (if used); but storage class specifiers like "static"
are not part of the type of an object and so including it in the pointer
declaration is wrong (anyway, "static" means different things in both
contexts: for the function declaration it affects linkage, for the
variable storage duration).
Using a static variable here can lead to races, e.g. when initializing
VP9 (for which said function pointer was added) and H.264 with slice
threading. The latter has the FF_CODEC_CAP_INIT_THREADSAFE flag set and
is therefore unaffected by the lock guarding initializations of
decoders.
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Andreas Rheinhardt
4e26520039
avcodec/mpeg12enc: Disallow using MPEG-2 intra VLC table for mpeg1video
Using MPEG-2 intra VLC tables is spec-incompliant for MPEG-1 and given
that an MPEG-1 bitstream can't signal whether MPEG-2 intra VLC tables
have been used the output is broken. Therefore this option is removed
immediately without any deprecation period.
Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
5 years ago
Paul B Mahol
0c8a0d3a56
avfilter/af_acrossover: add per output band gain
5 years ago
Paul B Mahol
13df9bfbcb
avutil/avsscanf: fix possible overreads when dealing with %c or %s
5 years ago
Paul B Mahol
b0298ad4e5
avfilter/af_acrossover: remove pointless allocation of static size
5 years ago
Paul B Mahol
0a5ff19643
avfilter/af_acrossover: document roll-off of each filter order
5 years ago
Paul B Mahol
ba6e2a2d05
avfilter/af_acrossover: move coefficients and state to simple arrays
5 years ago
Paul B Mahol
aa3566a8ee
avfilter/af_anequalizer: add timeline and slice support
5 years ago
James Almer
c35cf9fe53
avcodec/cbs_h2645: remove dead code in cbs_h2645_replace_ps()
Missed in 0720e15c03 . PS units are now guaranteed
to always be reference counter.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
233a99e191
avcodec/cbs_av1: ensure Sequence Header unit content is always reference counted
Prevents a NULL pointer dereference.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
052b4c3481
avcodec/vaapi_av1: read film grain param values from AV1Frames
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
6aa45a2769
avcodec/dxva2_av1: read film grain param values from AV1Frames
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
003aeeb3f6
avcodec/nvdec_av1: read film grain param values from AV1Frames
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
eee7ba8dba
avcodec/av1dec: infer and store film grain param values in AV1Frame
They are not always coded in the bistream for each frame. In some cases, the
values need to be taken from a reference frame.
See section 6.8.20 from the AV1 spec.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
aea80e2273
avcodec/cbs_av1: split film grain param fields into their own struct
Cosmetic change in preparation for the following patches.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
James Almer
e4c3ec3e00
Revert "avcodec/nvdec_av1: fix setting film grain parameters for frames with update_grain == 0"
This reverts commit f9eec62983 .
This does not effectively cover all cases. The values for some frames need
to be inferred by the decoder.
Signed-off-by: James Almer <jamrial@gmail.com>
5 years ago
Paul B Mahol
da83673c8b
avfilter/af_agate: add support for commands and timeline
5 years ago
Paul B Mahol
62a0368fb4
avfilter/af_acrossover: remove unneeded emms_c() calls
5 years ago
Paul B Mahol
ca0900bc6e
avfilter/af_acrossover: unroll biquad_process loop
Makes code significantly faster for higher orders.
5 years ago
Paul B Mahol
6100a01a7a
avfilter/af_acrossover: use fdsp for inverter
5 years ago
Paul B Mahol
263b98bbbd
avfilter/af_acrossover: always align nb_samples for fdsp call
5 years ago
Paul B Mahol
400b9ee731
avfilter/af_asupercut: add float sample format support
5 years ago
Michael Niedermayer
7cf852b03c
avcodec/hevc_cabac: Limit value in coeff_abs_level_remaining_decode() tighter
The max depth is 16bps, the max allowed coefficient depth is depth+6
Fixes: signed integer overflow: 1074266112 + 1073725439 cannot be represented in type 'int'
Fixes: 26493/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5657763331702784
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Michael Niedermayer
9dc3301745
avformat/cafdec: Check the return code from av_add_index_entry()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago
Michael Niedermayer
eb46939e3a
avformat/cafdec: Check for EOF in index read loop
Fixes: OOM
Fixes: 27398/clusterfuzz-testcase-minimized-ffmpeg_dem_CAF_fuzzer-541296033975500
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
5 years ago