No description
Find a file
Andreas Rheinhardt a3a2e782c2 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-03 00:03:45 +02:00
compat compat/cuda/ptx2c: strip CR from each line 2017-08-30 11:20:34 +02:00
doc Update for 3.4.7 2019-11-15 17:19:45 +01:00
ffbuild build: prevent SDL2 from polluting global cflags and extralibs 2017-10-09 21:41:11 -03:00
fftools fftools/ffmpeg: Free swresample dictionary during cleanup 2020-07-03 00:03:45 +02:00
libavcodec avcodec/ttaenc: Fix undefined shift 2020-07-03 00:03:45 +02:00
libavdevice avdevice/decklink_dec: Fix ;; 2018-06-18 01:16:03 +02:00
libavfilter avfilter/vf_xbr: Fix left shift of negative number 2020-07-03 00:03:45 +02:00
libavformat lavf/webm_chunk: Fix NULL dereference 2020-07-03 00:03:45 +02:00
libavresample Bump minor versions for branching 3.4 2017-10-11 01:23:47 +02:00
libavutil avutil/common: Fix integer overflow in av_ceil_log2_c() 2020-07-02 19:55:10 +02:00
libpostproc postproc/postprocess_template: remove FF_REG_sp from clobber list 2019-03-24 10:38:51 +01:00
libswresample swresample/swresample: Fix input channel count in resample_first computation 2018-10-28 02:22:42 +02:00
libswscale swscale/utils: Fix invalid left shifts of negative numbers 2020-07-03 00:03:45 +02:00
presets
tests avcodec/vp56rac: delay signaling an error on truncated input 2019-11-15 12:25:46 +01:00
tools tools/ismindex: remove unused header 2017-10-01 18:19:14 -03:00
.gitattributes fate: add SCC test 2017-01-27 17:06:42 +01:00
.gitignore build: add support for building .cu files via nvcc 2017-05-15 11:46:50 +02:00
.travis.yml build: Prefer NASM assembler over YASM 2017-06-21 17:00:30 -03:00
Changelog Changelog: update 2019-12-01 18:24:40 +01:00
configure configure: bump year 2020-07-02 19:55:09 +02: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
LICENSE.md Merge commit '4fef648d10' 2017-03-15 22:07:47 +01:00
MAINTAINERS MAINTAINERS: change the decklink maintainer to myself 2017-10-04 22:44:42 +02:00
Makefile Makefile: generate stripped CLI tools directly instead of copying unstripped ones first 2017-10-10 19:45:14 +02:00
README.md Add CONTRIBUTING.md 2016-09-18 10:02:13 +01:00
RELEASE Update for 3.4.7 2019-11-15 17:19:45 +01:00
RELEASE_NOTES add release notes based on release 3.3 2017-10-11 03:11:33 +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.
  • ffserver is a multimedia streaming server for live broadcasts.
  • 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.