FFmpeg git repo
Go to file
Martin Storsjö 65739691b9 checkasm: Generalize crash handling
This replaces the riscv specific handling from
7212466e73 (which essentially is
reverted), with a different implementation of the same (plus a bit
more), based on the corresponding feature in dav1d's checkasm,
supporting both Unix and Windows.

See in particular the dav1d commits
0b6ee30eab2400e4f85b735ad29a68a842c34e21,
0421f787ea592fd2cc74c887f20b8dc31393788b,
8501a4b20135f93a4c3b426468e2240e872949c5 and
d23e87f7aee26ddcf5f7a2e185112031477599a7, authored by Henrik Gramner.

The overall approach compared to the existing implementation for
riscv is the same; set up a signal handler, store the state with
sigsetjmp, jump out of the crashing function with siglongjmp.

The main difference is in what happens when the signal handler
is invoked. In the previous implementation, it would resume from
right before calling the crashing function, and then skip that call
based on the setjmp return value.

In the imported implementation from dav1d, we return to right before
the check_func() call, which will skip testing the current function
(as the pointer is the same as it was before).

Other differences are:
- Support for other signal handling mechanisms (Windows
  AddVectoredExceptionHandler)
- Using RtlCaptureContext/RtlRestoreContext instead of setjmp/longjmp
  on Windows with SEH
- Only catching signals once per function - if more than one
  signal is delivered before signal handling is reenabled, any
  signal is handled as it would without our handler
- Not using an arch specific signal handler written in assembly

Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-11 14:48:53 +02:00
compat
doc doc/APIchanges: document newly added buffersrc field 2024-01-11 07:05:55 +01:00
ffbuild riscv: test for assembler support 2023-12-08 17:21:09 +02:00
fftools fftools/ffmpeg_filter: log an information message about filter graph reconfigurations 2024-01-07 22:47:22 +01:00
libavcodec avcodec/proresenc_anatoliy: do not write into chroma reserved bitfields 2024-01-10 23:33:02 +01:00
libavdevice all: Don't set AVClass.item_name to its default value 2023-12-22 15:12:33 +01:00
libavfilter all: use av_channel_layout_describe_bprint instead of av_channel_layout_describe in a few places 2024-01-07 22:47:22 +01:00
libavformat avformat/mov: rename avif fields to heif 2024-01-10 18:26:53 -03:00
libavutil avutil/imgutils: fix half-float representation of 0.0625 2024-01-04 21:40:22 +01:00
libpostproc Bump versions after 6.1 2023-10-29 16:19:14 +01:00
libswresample swr/swresample: avoid reapplication of firstpts 2023-12-18 15:47:04 +05:30
libswscale riscv: test for assembler support 2023-12-08 17:21:09 +02:00
presets
tests checkasm: Generalize crash handling 2024-01-11 14:48:53 +02:00
tools tools/target_dec_fuzzer: Adjust threshold for QPEG 2023-12-29 01:15:41 +01:00
.gitattributes
.gitignore
.mailmap mailmap: remap my email accounts 2023-11-03 20:57:49 +08:00
.travis.yml
Changelog avfilter: Add fsync filter 2024-01-05 09:29:05 +01:00
configure configure: autodetect libdrm 2024-01-09 09:47:56 +08:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add my new PGP key 2024-01-10 23:07:28 -05:00
Makefile configure: Add a --disable-version-tracking option 2023-12-21 11:00:34 +02:00
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.