No description
Find a file
Martin Storsjö 652a765ecb configure: Enable -fno-common for Darwin targets, avoid linker warnings
Since GCC 10 and llvm.org Clang 11, -fno-common is the default.
However Apple's Xcode Clang hasn't followed suit yet, and still
defaults to -fcommon.

Compiling with -fcommon causes uninitialized global variables to
be treated as "common" (which allows multiple object files to have
similar definitions).

Common variables seem to have the issue that their intended alignment
isn't signaled, so the linker assumes that they may need alignment
according to their full size.

With large global tables, this can lead to linker warnings like
this, with Xcode 16.3:

    ld: warning: reducing alignment of section __DATA,__common from 0x8000 to 0x4000 because it exceeds segment maximum alignment

This can be reproduced with a small snippet like this:

    char table[16385];
    int main(int argc, char* argv[]) { return 0; }

Compiling with -fno-common avoids this issue and warning, and
matches the default behaviour of other compilers. (Compiling with
-fno-common also avoids the risk of accidentally accepting
duplicate definitions of global variables, as long as they are
uninitialized.)

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit f4e72eb5a3)
2025-05-06 10:55:51 +03:00
compat compat: Fix the fallback definition of stdc_trailing_zeros 2024-09-24 14:00:27 +03:00
doc Prepare for 7.1.1 2025-03-02 16:29:39 +01:00
ffbuild riscv: add Zvbb vector bit manipulation extension 2024-05-11 11:38:49 +03:00
fftools fftools/ffmpeg_filter: also remove display matrix side data from buffered frames 2025-03-04 10:29:16 -03:00
libavcodec avcodec/mediacodecdec_common: Workaround MTK broken crop implementation 2025-04-01 17:34:13 +08:00
libavdevice avdevice/decklink_dec: fix leaks on error 2024-09-29 10:30:49 +02:00
libavfilter avfilter/drawtext: fix memory leak when using "reinit" runtime command 2025-02-06 18:10:39 -03:00
libavformat avformat/hls: Partially revert "reduce default max reload to 3" 2025-03-02 16:28:23 +01:00
libavutil avutil/downmix_info: add missing semicolon 2025-02-06 18:44:04 -03:00
libpostproc */version.h: bump minor versions for release/7.1 2024-09-24 17:07:30 +02:00
libswresample arm: Consistently use proper interworking function returns 2024-10-10 23:56:10 +03:00
libswscale lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang 2025-03-11 00:37:35 -04:00
presets
tests fate: Add a dependency on ffprobe for fate-flcl1905 2025-02-11 10:55:05 +02:00
tools tools/target_dec_fuzzer: Adjust threshold for EACMV 2025-01-03 18:28:46 +01:00
.gitattributes lavf/assenc: normalize line endings to \n 2024-02-11 17:01:07 -08:00
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap mailmap: add entry for myself 2024-07-15 01:59:37 +02:00
Changelog Prepare for 7.1.1 2025-03-02 16:29:39 +01:00
configure configure: Enable -fno-common for Darwin targets, avoid linker warnings 2025-05-06 10:55:51 +03: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
INSTALL.md INSTALL: explain the circular dependency issue and solution 2025-01-03 18:28:37 +01:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: Lauri is still available but is really low on time nowadays 2025-01-03 18:28:41 +01:00
Makefile add tools/target_swr_fuzzer 2024-08-08 15:26:52 +02:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE Prepare for 7.1.1 2025-03-02 16:29:39 +01:00
RELEASE_NOTES RELEASE_NOTES: Based on the version from 5.1 2024-09-29 18:47:04 +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.