Go to file
Frank Plowman 42982b5a5d avformat/ffrtmpcrypt: Fix int-conversion warning
The gcrypt definition of `bn_new` used to use the return statement
on errors, with an AVERROR return value, regardless of the signature
of the function where the macro is used - it is called in
`dh_generate_key` and `ff_dh_init` which return pointers. As a result,
compiling with gcrypt and the ffrtmpcrypt protocol resulted in an
int-conversion warning. GCC 14 may upgrade these to errors [1].

This patch fixes the problem by changing the macro to remove `AVERROR`
and instead set `bn` to null if the allocation fails. This is the
behaviour of all the other `bn_new` implementations and so the result is
already checked at all the callsites. AFAICT, this should be the only
change needed to get ffmpeg off Fedora's naughty list of projects with
warnings which may be upgraded to errors in GCC 14 [2].

[1]: https://gcc.gnu.org/pipermail/gcc/2023-May/241264.html
[2]: https://www.mail-archive.com/devel@lists.fedoraproject.org/msg196024.html

Signed-off-by: Frank Plowman <post@frankplowman.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
2024-01-04 14:44:11 +02:00
compat configure: Set WIN32_LEAN_AND_MEAN at configure time 2023-08-14 22:57:28 +03:00
doc doc/codecs: add missing comma to introduction 2024-01-04 01:10:25 +01:00
ffbuild riscv: test for assembler support 2023-12-08 17:21:09 +02:00
fftools fftool/ffplay: avoid same name in local variable 2024-01-05 02:11:21 +08:00
libavcodec avcodec/mpegutils: print axis in debug_info2 2024-01-04 17:35:11 +08:00
libavdevice all: Don't set AVClass.item_name to its default value 2023-12-22 15:12:33 +01:00
libavfilter avfilter/vf_codecview: fix heap buffer overflow 2024-01-05 01:14:33 +08:00
libavformat avformat/ffrtmpcrypt: Fix int-conversion warning 2024-01-04 14:44:11 +02:00
libavutil avutil/hwcontext_videotoolbox: add frame hwctx to specify color range 2024-01-04 17:31:49 +08: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 avcodec/hevc_parser: fix missing zero_byte at frame beginning 2024-01-05 01:14:33 +08:00
tools tools/target_dec_fuzzer: Adjust threshold for QPEG 2023-12-29 01:15:41 +01:00
.gitattributes fate: add SCC test 2017-01-27 17:06:42 +01:00
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap mailmap: remap my email accounts 2023-11-03 20:57:49 +08:00
.travis.yml Merge commit '899ee03088d55152a48830df0899887f055da1de' 2019-03-14 15:53:16 -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
Changelog vvcdec: add vvc decoder 2024-01-03 23:15:12 +08:00
INSTALL.md INSTALL.md: Fix Markdown formatting 2019-01-31 10:29:16 -09:00
LICENSE.md avfilter/vf_geq: Relicense to LGPL 2019-12-28 11:20:48 +01:00
MAINTAINERS Remove myself from maintainers. 2023-12-23 23:15:55 +11:00
Makefile configure: Add a --disable-version-tracking option 2023-12-21 11:00:34 +02:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE RELEASE: update after 5.1 branch 2022-07-13 00:31:42 +02:00
configure vvcdec: add vvc decoder 2024-01-03 23:15:12 +08: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 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.