No description
Find a file
Andreas Rheinhardt 4d8beeaa8f avformat/cafenc: Don't segfault upon allocation error
If an array for the packet sizes could not be successfully reallocated
when writing a packet, the CAF muxer frees said array, but does not
reset the number of valid bytes. As a result, when the trailer is
written later, avio_write tries to read that many bytes from NULL,
which segfaults.

Fix this by not freeing the array in case of error; also, postpone
writing the packet data after having successfully (re)allocated the
array, so that even on allocation error the file can be correctly
finalized.

Also remove an unnecessary resetting of the number of size entries
used at the end.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 19a6b51fe6)
2022-01-11 15:15:53 +01:00
compat compat/cuda: correct ushort4 to use ushort 2021-02-22 17:03:52 +01:00
doc Update for 4.4.1 2021-09-08 22:45:01 +02:00
ffbuild ffbuild: Avoid using the --preprocessor argument to windres 2021-06-24 23:25:30 +03:00
fftools fftools/ffmpeg: Fix crash when flushing non-fully setup output stream 2021-10-08 11:31:37 -03:00
libavcodec avcodec/rasc: Fix potential use of uninitialized value 2022-01-11 15:15:53 +01:00
libavdevice avdevice/xv: Increase array size 2022-01-11 15:15:53 +01:00
libavfilter avfilter/vf_w3fdif: Fix segfault on allocation error 2022-01-11 15:15:53 +01:00
libavformat avformat/cafenc: Don't segfault upon allocation error 2022-01-11 15:15:53 +01:00
libavresample avresample: remove deprecated attribute from the AVAudioResampleContext struct 2018-01-09 10:56:53 -03:00
libavutil avutil/utils: Remove racy check from avutil_version() 2022-01-11 15:15:53 +01:00
libpostproc Bump Versions before release/4.4 branch 2021-03-20 01:01:12 +01:00
libswresample libswresample/audioconvert: Fix undefined NULL + 0 2021-04-02 21:39:54 +02:00
libswscale swscale/alphablend: Fix slice handling 2021-10-05 23:19:40 +02:00
presets
tests avformat/mpegts: add missing sample_rate value to Opus extradata 2021-05-02 20:54:59 -03:00
tools tools/cws2fws: Check read() for failure 2021-09-08 21:31:50 +02:00
.gitattributes fate: add SCC test 2017-01-27 17:06:42 +01:00
.gitignore tools/python: add script to convert TensorFlow model (.pb) to native model (.model) 2019-07-01 10:23:47 -03:00
.mailmap mailmap: add entry for myself 2021-03-09 02:09:55 +00:00
.travis.yml Merge commit '899ee03088' 2019-03-14 15:53:16 -03:00
Changelog Changelog: update 2021-10-23 23:31:29 +02:00
configure configure: Add missing libshine->mpegaudioheader dependency 2022-01-06 08:35:49 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
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 MAINTAINERS: update names 2021-01-20 01:04:26 -06:00
Makefile avcodec: move core AVCodecContext functions from util.c to a new file 2021-03-19 15:35:35 -03:00
README.md Remove the ffserver program 2018-01-06 18:31:37 +00:00
RELEASE Update for 4.4.1 2021-09-08 22:45:01 +02:00
RELEASE_NOTES Update missed irc links 2021-06-18 20:53:56 +02:00

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.