1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00
Go to file
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>
2020-12-02 16:11:50 +01:00
compat avfilter/scale_cuda: add lanczos algorithm 2020-11-04 01:43:21 +01:00
doc avfilter/af_acrossover: add per output band gain 2020-12-02 13:54:53 +01:00
ffbuild
fftools avcodec: deprecate thread_safe_callbacks 2020-11-27 15:46:50 +01:00
libavcodec avcodec/pthread_slice: Don't use static variable, fix race 2020-12-02 16:11:50 +01:00
libavdevice avdevice/decklink_dec: fix warning for unused variable 2020-11-23 16:18:57 +08:00
libavfilter avfilter/af_acrossover: add per output band gain 2020-12-02 13:54:53 +01:00
libavformat avformat/cafdec: Check the return code from av_add_index_entry() 2020-11-29 16:10:56 +01:00
libavresample
libavutil avutil/avsscanf: fix possible overreads when dealing with %c or %s 2020-12-02 13:54:53 +01:00
libpostproc
libswresample
libswscale lsws/x86/yuv2rgb: Fix compilation with mmxext or ssse3 disabled. 2020-11-14 15:37:57 +01:00
presets
tests fate: Convert the musepack8 test to an oneoff test 2020-11-17 23:47:31 +02:00
tools tools/target_bsf_fuzzer: set bitstream filter options 2020-11-20 19:20:33 -03:00
.gitattributes
.gitignore
.mailmap
.travis.yml
Changelog avfilter: add asupercut filter 2020-11-26 17:38:49 +01:00
configure avcodec/dxva2: add AV1 decode support 2020-11-12 15:55:16 +01:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS avformat: add amv muxer 2020-11-09 14:58:38 +10:00
Makefile tools/enum_options: fix build and add to Makefile 2020-11-20 15:20:24 +01:00
README.md
RELEASE

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.