FFmpeg git repo
Go to file
Andreas Rheinhardt 5a30b45c0f avcodec/mpeg12dec: Don't adapt (last|next)_pic.linesize for field pics
These values are not read anywhere. Furthermore, since commit
fe6037fd04 the linesize values
of the MPVWorkPictures were wrong for subsequent fields
in a chain of B-pictures (as they are always doubled and no longer
based upon the frame-linesizes) which can eventually lead to overflow.

Finally, it makes no real sense to ever double the linesize
of the reference pictures at all: Even when the current picture
is a field, it can still reference both fields of reference
pictures and therefore the linesize should allow to address
both fields (for the same reason, data is not offset for
reference pictures).

libavcodec/mpeg12dec.c:1304:41: runtime error: signed integer overflow: 4611686018427387904 * 2 cannot be represented in type 'long'

issue: 69732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEGVIDEO_fuzzer-5123551179374592

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-06-30 11:34:36 +02:00
compat
doc avutil/stereo3d: add a Stereo3D view to signal that the view is unspecified 2024-06-28 13:16:57 -03:00
ffbuild riscv: add Zvbb vector bit manipulation extension 2024-05-11 11:38:49 +03:00
fftools fftools/ffplay_renderer: use correct NULL value for Vulkan type 2024-06-25 00:19:03 +02:00
libavcodec avcodec/mpeg12dec: Don't adapt (last|next)_pic.linesize for field pics 2024-06-30 11:34:36 +02:00
libavdevice avdevice/avfoundation: add external video devices 2024-06-20 18:52:06 +02:00
libavfilter avfilter/vf_showinfo: don't use sizeof(AVSphericalMapping) 2024-06-28 13:16:57 -03:00
libavformat avformat/mov: set Stereo3D type when parsing eyes box 2024-06-28 13:16:57 -03:00
libavutil avutil/timestamp: avoid possible FPE when 0 is passed to av_ts_make_time_string2() 2024-06-30 09:11:44 +02:00
libpostproc
libswresample
libswscale swscale/output: Avoid undefined overflow in yuv2rgb_write_full() 2024-06-26 20:49:36 +02:00
presets
tests checkasm: add tests for yuv2rgb 2024-06-28 14:49:49 +02:00
tools tools/target_dec_fuzzer: Adjust threshold for MV30 2024-06-26 20:49:33 +02:00
.gitattributes
.gitignore
.mailmap
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog avcodec: add external enc libvvenc for H266/VVC 2024-06-15 21:00:05 +08:00
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: Update the entries for the release maintainer for FFmpeg 2024-06-19 12:36:02 +02:00
Makefile riscv: add Zvbb vector bit manipulation extension 2024-05-11 11:38:49 +03:00
README.md
RELEASE
configure avcodec/evc: Alterations following changes in libxeve 2024-06-28 12:20:15 -03: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 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.