FFmpeg git repo
Go to file
Andreas Rheinhardt da63a31a10 lavf/webm_chunk: Fix NULL dereference
The earlier version of the webm_chunk muxer had several bugs:

1. If the first packet of an audio stream didn't have a PTS of zero,
then no chunk will be started before a packet is delivered to the
underlying Matroska/WebM muxer, i.e. the AVFormatContext used to write
these packets had a NULL as AVIOContext for output. This is behind the
crash in ticket #5752.

2. If an error happens during writing a packet, the underlyimg
Matroska/WebM muxer context is freed. This leads to a use-after-free
coupled with a double-free in webm_chunk_write_trailer (which supposes
that the underlying AVFormatContext is still valid).

3. Even when no error occurs at all, webm_chunk_write_trailer is still
buggy: After the underlying Matroska/WebM muxer has written its trailer,
ending the chunk implicitly flushes it again which is illegal at this
point.

These bugs have been fixed.

Fixes #5752.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 8c6ee7626b)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-07-02 10:48:42 +02:00
compat
doc Update for 4.0.6 2020-07-01 13:57:48 +02:00
ffbuild
fftools fftools/ffmpeg: Free swresample dictionary during cleanup 2020-07-02 10:43:53 +02:00
libavcodec avcodec/ttaenc: Fix undefined shift 2020-07-02 10:48:28 +02:00
libavdevice
libavfilter avfilter/vf_xbr: Fix left shift of negative number 2020-07-02 10:43:53 +02:00
libavformat lavf/webm_chunk: Fix NULL dereference 2020-07-02 10:48:42 +02:00
libavresample
libavutil avutil/common: Fix integer overflow in av_ceil_log2_c() 2020-07-01 13:33:45 +02:00
libpostproc
libswresample
libswscale swscale/utils: Fix invalid left shifts of negative numbers 2020-07-02 10:43:52 +02:00
presets
tests
tools
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog Update for 4.0.6 2020-07-01 13:57:48 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE Update for 4.0.6 2020-07-01 13:57:48 +02:00
RELEASE_NOTES
configure configure: bump year 2020-07-01 13:33:44 +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.