Go to file
Martin Storsjö 01f58f3646 lavu/video_enc_params: Avoid relying on an undefined C construct
The construct of using offsetof on a (potentially anonymous) struct
defined within the offsetof expression, while supported by all
current compilers, has been declared explicitly undefined by the
C standards committee [1].

Clang recently got a change to identify this as an issue [2];
initially it was treated as a hard error, but it was soon after
softened into a warning under the -Wgnu-offsetof-extensions option
(not enabled automatically as part of -Wall though).

Nevertheless - in this particular case, it's trivial to fix the
code not to rely on the construct that the standards committee has
explicitly called out as undefined.

[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm
[2] https://reviews.llvm.org/D133574

Signed-off-by: Martin Storsjö <martin@martin.st>
2023-01-31 14:22:54 +02:00
compat
doc fftools/ffmpeg: support input frame params in encoding stats 2023-01-31 09:09:23 +01:00
ffbuild
fftools fftools/ffmpeg: support input frame params in encoding stats 2023-01-31 09:09:23 +01:00
libavcodec lavc: add null codecs 2023-01-31 09:00:56 +01:00
libavdevice
libavfilter avfilter/vf_libplacebo: suppress cast warning 2023-01-30 20:34:55 +01:00
libavformat avformat: add XMD demuxer 2023-01-30 21:02:48 +01:00
libavutil lavu/video_enc_params: Avoid relying on an undefined C construct 2023-01-31 14:22:54 +02:00
libpostproc
libswresample
libswscale
presets
tests avcodec/png: use libavutil/csp.h for cHRM chunks 2023-01-25 08:09:16 -05:00
tools
.gitattributes
.gitignore
.mailmap
.travis.yml
Changelog avformat: add XMD demuxer 2023-01-30 21:02:48 +01:00
configure lavfi/scale_qsv: simplify scale_qsv filter 2023-01-30 08:48:58 +08:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
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 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.