FFmpeg git repo
Go to file
Andreas Cadhalpun 4e4708ad80 apedec: prevent out of array writes in decode_array_0000
s->decoded_buffer is allocated with a min_size of:
    2 * FFALIGN(blockstodecode, 8) * sizeof(*s->decoded_buffer)

Then it is assigned to s->decoded[0] (and s->decoded_buffer + FFALIGN(blockstodecode, 8)
to s->decoded[1]) and passed as out buffer to decode_array_0000.

In this function 64 elements of the out buffer are written
unconditionally and outside the array if blockstodecode is too small.

This causes memory corruption, leading to segmentation faults or other
crashes.

Thus change decode_array_0000 to write at most blockstodecode elements
of the out buffer.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 699341d647)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-05-19 21:08:36 +02:00
compat Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39' 2014-08-15 21:00:50 +02:00
doc tests: drop bc dependency 2015-05-14 04:08:10 +02:00
libavcodec apedec: prevent out of array writes in decode_array_0000 2015-05-19 21:08:36 +02:00
libavdevice avdevice: Use av_format_get_control_message_cb() 2015-02-13 20:48:09 +01:00
libavfilter lavfi/fade: Do not overread input buffer. 2015-05-17 12:47:33 +02:00
libavformat avformat/mpegts: Detect changes in packet through CRC instead of just the 5bit version 2015-05-19 20:57:48 +02:00
libavresample Merge commit '744d813bcf527481f2217428fa08bfee8642935b' into release/2.4 2015-05-19 21:07:02 +02:00
libavutil avutil/pca: Check for av_malloc* failures 2015-04-25 15:06:54 +02:00
libpostproc Add FFMPEG_VERSION into the binary libs 2014-12-20 02:26:27 +01:00
libswresample swresample/swresample-test: Randomly wipe out channel counts 2015-04-25 15:06:54 +02:00
libswscale swscale/utils: clear formatConvBuffer on allocation 2015-03-29 03:34:22 +02:00
presets presets: remove moldering iPod presets 2014-06-17 16:15:04 -08:00
tests tests: drop bc dependency 2015-05-14 04:08:10 +02:00
tools tools/crypto_bench: fix build when AV_READ_TIME is unavailable 2014-09-16 18:27:33 +02:00
.gitattributes Treat all '*.pnm' files as non-text file 2014-12-01 08:02:37 -05:00
.gitignore avcodec: export motion vectors in frame side data on demand 2014-08-18 14:13:57 +02:00
arch.mak Merge commit '8675bcb0addb1c7fb0b04682d1f3f95d5b8dae14' 2014-04-07 02:15:18 +02:00
Changelog Changelog, fix typos 2015-04-26 17:47:03 +02:00
cmdutils_common_opts.h ffmpeg: add -devices param 2014-05-28 03:52:50 +02:00
cmdutils_opencl.c cmdutils_opencl: Use av_malloc_array() 2014-07-01 03:49:36 +02:00
cmdutils.c Merge commit '4d48691622149ba5998de08a0acec85d1f4ed46a' into release/2.4 2015-01-18 00:38:44 +01:00
cmdutils.h ffmpeg: add -devices param 2014-05-28 03:52:50 +02:00
common.mak Merge commit 'afe176265480880e1f702c96a8ba434b0d88728b' 2014-05-20 03:33:30 +02:00
configure Merge commit '4070e02dfcf8c7d871b4a41d8b591ec0c130c70a' into release/2.4 2015-03-09 00:44:21 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_dxva2.c Merge commit 'a7c5fddac8137654cb503295c4dfb6492df43643' 2014-04-30 00:46:38 +02:00
ffmpeg_filter.c ffmpeg: Do av_buffersink_set_frame_size() when reconfiguring the filtergraph not just when changing audio resample parameters 2014-09-11 04:55:58 +02:00
ffmpeg_opt.c Merge commit '420aa06a2487469259a04f9be66fd15535372796' into release/2.4 2015-04-05 16:08:29 +02:00
ffmpeg_vda.c Merge commit '1839fafa951308237c4672ffd9a94f927b26eac7' 2014-05-12 02:44:28 +02:00
ffmpeg_vdpau.c
ffmpeg.c Merge commit '420aa06a2487469259a04f9be66fd15535372796' into release/2.4 2015-04-05 16:08:29 +02:00
ffmpeg.h ffmpeg: Enable compute_edt only when the subtitles are used for a output stream instead of a filter 2014-09-01 19:51:58 +02:00
ffplay.c Revert the default for ffplay to -noautoexit. 2014-09-08 17:51:12 +02:00
ffprobe.c Print bits_per_raw_sample for ffprobe -show_streams. 2014-09-08 17:49:20 +02:00
ffserver.c ffserver: drop custom skip_spaces() impl 2014-09-13 21:01:01 -03:00
INSTALL.md INSTALL: add markdown syntax 2014-05-28 22:38:38 +02:00
library.mak Merge commit 'bb0babd7054bed7edfd9f4d6b20cdba864de1830' 2014-07-22 02:45:45 +02:00
LICENSE.md Merge commit '9e8bbe7d4d1dcd5fec491dbfbb98ed2038a7bed5' 2014-08-29 01:08:57 +02:00
MAINTAINERS MAINTAINERS: Add 2.4 to maintained releases, drop 2.3 2014-09-14 16:00:15 +02:00
Makefile Makefile: add dependencies which require ffversion.h 2014-12-20 04:34:45 +01:00
README.md Merge commit '96ce6d6f119a16e489941c629a2805204322b717' 2014-08-17 21:41:55 +02:00
RELEASE Update for FFmpeg 2.4.9 release 2015-04-25 17:10:18 +02:00
RELEASE_NOTES RELEASE_NOTES: add H.261 & HEVC RTP support 2014-09-16 11:34:50 +02:00
version.sh version.sh: Print versions based on the last git tag for release branches 2014-07-28 15:44:59 +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 analisys 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

Conding examples are available in the doc/example directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.