No description
Find a file
Anton Khirnov ddf3bedfb8 lavc/videotoolbox: do not pass AVCodecContext to decoder output callback
The opaque parameter for the callback is set in videotoolbox_start(),
called when the hwaccel is initialized. When frame threading is used,
avctx will be the context corresponding to the frame thread currently
doing the decoding. Using this same codec context in all subsequent
invocations of the decoder callback (even those triggered by a different
frame thread) is unsafe, and broken after
cc867f2c09, since each frame thread now
cleans up its hwaccel state after decoding each frame.

Fix this by passing hwaccel_priv_data as the opaque parameter, which
exists in a single instance forwarded between all frame threads.

The only other use of AVCodecContext in the decoder output callback is
as a logging context. For this purpose, store a logging context in
hwaccel_priv_data.

(cherry picked from commit d7f4ad88a0)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2022-09-25 10:01:34 +02:00
compat Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
doc Update for 5.0.2 2022-09-01 00:41:28 +02:00
ffbuild Makefile: Redo duplicating object files in shared builds 2022-01-04 05:01:04 +01:00
fftools fftools/cmdutils: Fix undefined 1 << 31 2022-01-11 00:24:23 +01:00
libavcodec lavc/videotoolbox: do not pass AVCodecContext to decoder output callback 2022-09-25 10:01:34 +02:00
libavdevice avdevice/dshow: fix regression 2022-04-04 00:05:36 +02:00
libavfilter avfilter/vf_scale: overwrite the width and height expressions with the original values 2022-09-07 20:37:54 -03:00
libavformat avformat/cafenc: derive Opus frame size from the relevant stream parameters 2022-09-24 12:23:50 -03:00
libavutil avutil/hwcontext_d3d11va: fix texture_infos writes on non-fixed-size pools 2022-07-18 02:13:25 +02:00
libpostproc lib*/version.h: Bump Versions before release/5.0 branch 2022-01-04 13:40:03 +01:00
libswresample lib*/version.h: Bump Versions before release/5.0 branch 2022-01-04 13:40:03 +01:00
libswscale swscale/output: use isSwappedChroma 2022-01-04 20:01:10 -06:00
presets
tests fate: update reference files after the recent dash manifest muxer changes 2022-04-08 16:10:34 -03:00
tools tools/target_dec_fuzzer: Adjust threshold for MMVIDEO 2022-09-01 00:41:28 +02:00
.gitattributes fate: add SCC test 2017-01-27 17:06:42 +01:00
.gitignore build: detect Metal.framework and build .metal files 2021-12-18 11:55:47 -08:00
.mailmap mailmap: add entry for myself 2021-03-09 02:09:55 +00:00
.travis.yml Merge commit '899ee03088' 2019-03-14 15:53:16 -03:00
Changelog Update for 5.0.2 2022-09-01 00:41:28 +02:00
configure configure: extend SDL check to accept all 2.x versions 2022-06-10 13:56:26 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md INSTALL.md: Fix Markdown formatting 2019-01-31 10:29:16 -09:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: Add ED25519 key for signing my commits in the future 2022-09-01 00:41:28 +02:00
Makefile Makefile: Redo duplicating object files in shared builds 2022-01-04 05:01:04 +01:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE Update for 5.0.2 2022-09-01 00:41:28 +02:00
RELEASE_NOTES RELEASE_NOTES: Based on the version from 4.3 2022-01-14 19:43:55 +01:00

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 means to alter decoded audio and video through a directed graph of connected 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.