No description
Find a file
Andreas Rheinhardt 589f1e5cc7 swresample/rematrix: Use correct function pointer types for calls
Calling a function via a different function pointer type is
undefined behavior (C11, 6.3.2.3 8); two pointer parameters
of different type are not equivalent in this regard, although
it happens to work in practice; the current code relies on this.

This patch brings the code in line with the spec. This fixes the
following FATE-tests when run with Clang-UBSan:
ac3-fixed-encode-2 audiomatch-afconvert-{16000,44100}-mono-he-{adts,m4a}
audiomatch-dolby-44100-mono-he-mp4 filter-metadata-avf-aphase-meter-mono
filter-pan-{downmix1,downmix2,mono2,stereo2,stereo3,stereo4,upmix1,upmix2}
lavf-dv_{pal,ntsc} matroska-encoding-delay
The error was something like
src/libswresample/rematrix.c:621:17: runtime error: call to function sum2_float through pointer to incorrect function type 'void (*)(void *, const void *, const void *, void *, int, int, int)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2025-07-03 18:17:56 +02:00
compat compat/cuda: add device side printf function 2025-05-14 22:08:33 +02:00
doc doc/APIchanges: add missing entries for the recent changes 2025-07-01 23:28:24 -03:00
ffbuild ffbuild: correctly silence and tag new css/html steps 2025-05-28 01:02:55 +02:00
fftools fftools/textformat: renamings in print_unit_int for consistency (cosmetic) 2025-06-27 00:24:35 +02:00
libavcodec avcodec/ffv1enc: Use dummies to avoid UB pointer arithmetic 2025-07-03 18:17:56 +02:00
libavdevice various: fix typos 2025-06-15 21:00:38 +05:30
libavfilter avfilter/vf_showinfo: add support for 3D Reference Displays Information side data 2025-07-01 22:46:22 +02:00
libavformat avformat/dump: add support for 3D Reference Displays Information side data 2025-07-01 22:46:22 +02:00
libavutil avutil/frame: add a 3D Reference Displays Information side data type 2025-07-01 22:42:53 +02:00
libswresample swresample/rematrix: Use correct function pointer types for calls 2025-07-03 18:17:56 +02:00
libswscale swscale/utils: Fix potential race when initializing xyz tables 2025-05-27 13:49:26 +02:00
presets
tests avformat/iamf: fix setting channel layout for Scalable layers 2025-06-24 14:41:43 -03:00
tools tools/pktdumper: dump extradata buffers 2025-07-01 16:45:08 +10:00
.gitattributes gitattributes: End merge conflicts in Changelog 2025-03-17 15:26:10 +01:00
.gitignore ffmpeg/repo: Add dot-folders in the repository root to .gitignore 2025-04-19 17:29:12 +02:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog avcodec/g728dec: G.728 decoder 2025-06-23 17:16:42 +10:00
configure avcodec/amfdec: Add VP9 AMF decoder 2025-06-26 13:48:15 +02:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS Use https for repository links 2023-03-01 21:59:10 +01:00
FUNDING.json Add FUNDING.json 2025-06-23 14:48:40 +02:00
INSTALL.md Add tools/merge-all-source-plugins 2025-05-15 12:17:04 +02:00
LICENSE.md Remove libpostproc 2025-05-07 15:35:47 +02:00
MAINTAINERS MAINTAINERS: Add myself for graph printing 2025-06-07 14:32:25 +02:00
Makefile Makefile: Split ALLFFLIBS 2025-05-26 20:33:10 +02:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update release number after release/7.1 branch 2024-10-09 01:55:50 +02: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.