Go to file
Andreas Rheinhardt a217c1472d avcodec/h2645_parse: Only trim RBSP trailing padding if it exists
It does not exist for NALUs for which the SODB is empty;
it also does not exist for NALUs for which not even
the complete header is present. The former category contains
end of sequence and end of bitstream units. The latter category
consists of one-byte HEVC units (the ordinary H.264 header is only
one byte long).
This commit therefore stops stripping RBSP trailing padding
from the former type of unit and discards the latter type of unit
altogether.

This also fixes an assertion failure: Before this commit, a one-byte
HEVC NALU from an ISOBMFF packet could pass all the checks in
hevc_parse_nal_header() (because the first byte of the size field
of the next unit is mistaken as containing the temporal_id);
yet because the trailing padding bits were stripped, its actually
had a size of less than eight bits; because h2645_parse.c uses
the checked bitstream reader, the get_bits_count() of the GetBitContext
is not 16 in this case; it is not even a multiple of eight
and this can trigger an assert in ff_hevc_decode_nal_sei().

Fixes: Assertion failure
Fixes: 46662/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-4947860854013952

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2022-06-24 18:31:03 +02:00
compat compat/w32dlfcn.h: Remove MAX_PATH limit and replace LoadLibraryExA with LoadLibraryExW 2022-06-21 13:27:46 +03:00
doc avfilter/vf_estdif: tweak ecost option 2022-06-21 18:10:39 +02:00
ffbuild ffbuild/common: Fix CPPFLAGS applied for compiling C++ files 2022-05-24 21:30:52 +02:00
fftools fftools: Remove MAX_PATH limit and switch to UTF-8 versions of fopen() and getenv() 2022-06-21 13:27:46 +03:00
libavcodec avcodec/h2645_parse: Only trim RBSP trailing padding if it exists 2022-06-24 18:31:03 +02:00
libavdevice avdevice/oss_dec: account for sample size when computing timestamp 2022-06-19 23:01:20 +02:00
libavfilter avfilter/vf_gblur: properly round output 2022-06-23 18:50:54 +02:00
libavformat avformat/movenc: enable compressorname for mp4 mode 2022-06-24 15:37:23 +08:00
libavutil avutil/x86/float_dsp: Remove obsolete 3dnowext function 2022-06-22 13:37:22 +02:00
libpostproc lib*/version: Move library version functions into files of their own 2022-05-10 06:49:32 +02:00
libswresample swresample/noise_shaping_data: Remove unused tables 2022-06-15 04:58:14 +02:00
libswscale swscale/x86/swscale: Simplify macro 2022-06-22 13:36:18 +02:00
presets
tests avformat/movenc: enable compressorname for mp4 mode 2022-06-24 15:37:23 +08:00
tools tools/target_dec_fuzzer: add a custom get_buffer2() implementation 2022-06-06 09:40:44 -03:00
.gitattributes
.gitignore gitignore: add config_components.h 2022-03-17 18:35:41 -03:00
.mailmap
.travis.yml
Changelog avfilter: add virtualbass filter 2022-06-16 10:23:30 +02:00
configure configure: select avs2 parser for libdavs2 decoder 2022-06-24 15:37:23 +08:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add myself as maintainer for LoongArch. 2022-06-08 18:29:30 +02:00
Makefile Makefile: avoid cp-ing over existing executable files 2022-06-01 19:38:50 -05:00
README.md README: fix typo and description of libavfilter 2021-10-08 09:44:34 +05:30
RELEASE

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 means to alter decoded audio and video through a directed graph of connected 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.