No description
Find a file
Martin Storsjö 20d711e4df 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:57:27 +03:00
compat configure: Set WIN32_LEAN_AND_MEAN at configure time 2023-08-14 22:57:28 +03:00
doc doc/t2h: Support texinfo 7.1 and 7.2 pretest 2025-02-28 16:24:33 -03:00
ffbuild makefile: Clean up missed object files with "make clean" 2024-03-10 23:45:51 +02:00
fftools fftools/ffplay: fix crash when vk renderer is null 2024-11-06 16:51:24 +08:00
libavcodec avcodec/h263dec: Check against previous dimensions instead of coded 2025-02-27 01:42:18 +01:00
libavdevice avdevice/dshow: Initialize 2 pointers 2025-02-27 01:41:40 +01:00
libavfilter avfilter/vf_v360: Fix NULL pointer use 2025-02-27 01:42:13 +01:00
libavformat avformat/iamf_parse: ensure there's at most one of each parameter types in audio elements 2025-02-28 16:24:33 -03:00
libavutil avutil/avstring: dont mess with NULL pointers in av_match_list() 2025-02-27 01:42:14 +01:00
libpostproc Bump prior release/7.0 branch 2024-03-27 01:04:53 +01:00
libswresample Bump prior release/7.0 branch 2024-03-27 01:04:53 +01:00
libswscale lsws/ppc/yuv2rgb_altivec: Fix build in non-VSX environments with Clang 2025-03-16 00:10:28 -04:00
presets
tests avformat/movenc: fix channel count and samplerate fields for IAMF tracks 2024-07-18 23:38:04 -03:00
tools tools/target_dec_fuzzer: Adjust threshold for EACMV 2025-02-27 01:42:06 +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: Update my mailmap entry 2024-02-23 00:17:21 +01:00
.travis.yml Merge commit '899ee03088' 2019-03-14 15:53:16 -03:00
Changelog Changelog: update 2025-02-28 16:27:20 -03:00
configure configure: Enable -fno-common for Darwin targets, avoid linker warnings 2025-05-06 10:57:27 +03:00
CONTRIBUTING.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
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-02-27 01:41:58 +01:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS MAINTAINERS: Add Timo Rothenpieler to server admins 2024-07-25 20:34:15 +02:00
Makefile tools: Add target_sws_fuzzer.c 2024-02-21 18:24:17 +01:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE update for 7.0.3 2025-02-27 01:45:06 +01:00
RELEASE_NOTES RELEASE_NOTES: Based on the version from 5.1 2024-04-05 00:31:10 +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.