FFmpeg git repo
Go to file
Andreas Rheinhardt fd1a2a54a4 avfilter/vf_alphamerge: Fix double-free of AVFilterFormats on error
The query_formats function of the alphamerge filter tries to allocate
two lists of formats which on success are attached to more permanent
objects (AVFilterLinks) for storage afterwards. If attaching a list
to an AVFilterLink succeeds, the link becomes one of the owners of
the list. Yet if attaching a list to one of its links succeeds and
an error happens lateron, both lists were manually freed, which is wrong
if the list is already owned by one or more links; these links' pointers
to their lists will become dangling and there will be a double-free/use-
after-free when these links are cleaned up automatically.

This commit fixes this by removing the custom freeing code; this will
temporarily add a leaking codepath (if attaching a list not already
owned by a link to a link fails, the list will leak), but this will
be fixed soon by making sure that an AVFilterFormats without owner will
be automatically freed when attaching it to an AVFilterLink fails.
At most one list leaks because as of this commit a new list is only
allocated after the old list has been successfully attached to a link.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-08-23 23:31:15 +02:00
compat
doc avfilter/af_biquads: add different transform types 2020-08-21 22:46:07 +02:00
ffbuild ffbuild: Refine MIPS handling 2020-07-23 16:30:02 +02:00
fftools fftools/ffmpeg: Fix leak of AVFilterInOut in case of error 2020-08-23 19:57:42 +02:00
libavcodec cbs_av1: Fix test for presence of buffer_removal_time element 2020-08-23 18:43:58 +01:00
libavdevice avdevice/xcbgrab: check return values of xcb query functions 2020-08-15 15:32:52 -04:00
libavfilter avfilter/vf_alphamerge: Fix double-free of AVFilterFormats on error 2020-08-23 23:31:15 +02:00
libavformat avformat/mpegtsenc: support DVB 6A descriptor for AC-3 2020-08-23 07:19:11 +08:00
libavresample
libavutil lavu/buffer: forward av_buffer_realloc() error code. 2020-08-21 11:44:30 +02:00
libpostproc
libswresample swresample/rematrix: handle 22.2 as a 9 channel layout 2020-08-18 22:47:35 +03:00
libswscale swscale/x86/output: add missing AVX2 support preprocessor wrappers 2020-08-20 15:14:56 -03:00
presets
tests fate: add fate-sub-dvb test 2020-08-22 19:02:01 +02:00
tools tools/target_dec_fuzzer: Adjust threshold for DST 2020-08-18 14:56:04 +02:00
.gitattributes
.gitignore
.mailmap
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog avcodec: add RPZA encoder 2020-08-21 22:46:07 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add myself and gpg fingerprint 2020-07-17 21:57:18 +02:00
Makefile
README.md
RELEASE
configure avformat/mpegtsenc: support DVB 6A descriptor for AC-3 2020-08-23 07:19:11 +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 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.