FFmpeg git repo
Go to file
Andreas Rheinhardt ea1b71e82f avcodec/hevc_mp4toannexb_bsf: Check NAL size against available input
The hevc_mp4toannexb bsf does not explicitly check whether a NAL unit
is so big that it extends beyond the end of the input packet; it does so
only implicitly by using the checked version of the bytestream2 API.
But this has downsides compared to real checks: It can lead to huge
allocations (up to 2GiB) even when the input packet is just a few bytes.
And furthermore it leads to uninitialized data being output.
So add a check to error out early if it happens.

Also check directly whether there is enough data for the length field.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-06-15 03:18:11 +02:00
compat
doc avcodec/libzvbi-teletextdec: fix txt_default_region limits 2020-06-14 20:00:02 +02:00
ffbuild
fftools fftools: switch to the new child class iteration API 2020-06-10 12:36:44 +02:00
libavcodec avcodec/hevc_mp4toannexb_bsf: Check NAL size against available input 2020-06-15 03:18:11 +02:00
libavdevice Bump minor versions after branching 4.3 2020-06-08 22:49:04 +02:00
libavfilter avfilter/vf_showinfo: display H.26[45] user data unregistered sei message 2020-06-15 07:19:55 +08:00
libavformat avformat/mxfdec: free duplicated utf16 strings 2020-06-14 21:22:47 +02:00
libavresample
libavutil lavu/internal: Fix comment for avpriv_dict_set_timestamp 2020-06-14 12:27:10 +08:00
libpostproc Bump minor versions after branching 4.3 2020-06-08 22:49:04 +02:00
libswresample Bump minor versions after branching 4.3 2020-06-08 22:49:04 +02:00
libswscale swscale: cosmetic fixes 2020-06-14 16:34:07 +01:00
presets
tests avcodec/h264: create user data unregistered SEI side data for H.264 2020-06-15 07:19:55 +08:00
tools tools/target_dec_fuzzer: Adjust threshold for lagarith 2020-06-11 14:59:04 +02:00
.gitattributes
.gitignore
.mailmap mailmap: add entry for myself 2020-06-12 14:30:02 +08:00
.travis.yml
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog Changelog: add next marker back after branching 4.3 2020-06-08 22:49:04 +02:00
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE RELEASE: We are after the 4.3 branch point, update for that 2020-06-10 00:20:24 +02:00
configure

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.