FFmpeg git repo
Go to file
Martin Storsjö 63b1813119
seek: Fix crashes in ff_seek_frame_binary if built with latest Clang 14
Passing an uninitialized variable as argument to a function is
undefined behaviour (UB). The compiler can assume that UB does not
happen.

Hence, the compiler can assume that the variables are never
uninitialized when passed as argument, which means that the codepaths
that initializes them must be taken.

In ff_seek_frame_binary, this means that the compiler can assume
that the codepaths that initialize pos_min and pos_max are taken,
which means that the conditions "if (sti->index_entries)" and
"if (index >= 0)" can be optimized out.

Current Clang git versions (upcoming Clang 14) enabled an optimization
that does this, which broke the current version of this function
(which intentionally left the variables uninitialized, but silencing
warnings about being uninitialized). See [1] for discussion on
the matter.

[1] https://reviews.llvm.org/D105169#3069555

Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit ab79263419)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2024-04-14 22:12:35 +02:00
compat compat/cuda: Change inclusion guards 2019-08-05 12:11:48 +02:00
doc doc/html: fix styling issue with Texinfo 7.0 2024-04-14 22:12:34 +02:00
ffbuild build: add support for building CUDA files with clang 2019-08-04 19:16:59 +02:00
fftools fftools/ffmpeg_opt: Fix leak of options when parsing options fails 2022-05-04 20:00:05 +02:00
libavcodec avcodec/4xm: Check for cfrm exhaustion 2024-04-14 22:12:35 +02:00
libavdevice Bump minor versions to separate 4.2 from master 2019-07-21 18:36:18 +02:00
libavfilter avfilter/vf_showinfo: remove backspaces 2022-10-09 21:33:04 +02:00
libavformat seek: Fix crashes in ff_seek_frame_binary if built with latest Clang 14 2024-04-14 22:12:35 +02:00
libavresample
libavutil libavutil/ppc/cpu.c: check that AT_HWCAP2 is defined 2024-04-14 22:12:32 +02:00
libpostproc Bump minor versions to separate 4.2 from master 2019-07-21 18:36:18 +02:00
libswresample Bump minor versions to separate 4.2 from master 2019-07-21 18:36:18 +02:00
libswscale swscale/input: Use more unsigned intermediates 2023-04-21 01:55:09 +02:00
presets
tests avcodec/snowenc: Fix visual weight calculation 2023-04-21 01:55:18 +02:00
tools tools/cws2fws: Check read() for failure 2021-10-06 13:54:16 +02:00
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS Use https for repository links 2023-04-21 01:55:16 +02:00
Changelog Update for 4.2.9 2023-04-21 11:01:17 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: Add ED25519 key for signing my commits in the future 2022-10-09 21:33:01 +02:00
Makefile
README.md
RELEASE Update for 4.2.9 2023-04-21 11:01:17 +02:00
RELEASE_NOTES Update missed irc links 2021-10-06 13:54:16 +02:00
configure configure: update copyright year 2023-04-21 01:55:19 +02:00

README.md

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 a mean to alter decoded Audio and Video through chain of 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.