lavf/mov.c: Avoid heap allocation wrap in mov_read_hdlr

Core of patch is from paul@paulmehta.com
Reference https://crbug.com/643950

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Check value reduced as the code does not support larger lengths
(cherry picked from commit fd30e4d57fe5841385f845440688505b88c0f4a9)

This is upstream's slightly modified version of the previous downstream
patch.
BUG=643950

Change-Id: I6970542cee1de57b26c2ec9a69050ae9fd1ea86f
Reviewed-on: https://chromium-review.googlesource.com/439419
Reviewed-by: Fredrik Hubinette <hubbe@chromium.org>
2 files changed
tree: 916cfc46c33df386580e8498ba58a798e80a4dae
  1. chromium/
  2. compat/
  3. doc/
  4. libavcodec/
  5. libavdevice/
  6. libavfilter/
  7. libavformat/
  8. libavresample/
  9. libavutil/
  10. libpostproc/
  11. libswresample/
  12. libswscale/
  13. presets/
  14. tests/
  15. tools/
  16. .gitattributes
  17. .gitignore
  18. .travis.yml
  19. arch.mak
  20. BUILD.gn
  21. Changelog
  22. cmdutils.c
  23. cmdutils.h
  24. cmdutils_common_opts.h
  25. cmdutils_opencl.c
  26. codereview.settings
  27. common.mak
  28. configure
  29. CONTRIBUTING.md
  30. COPYING.GPLv2
  31. COPYING.GPLv3
  32. COPYING.LGPLv2.1
  33. COPYING.LGPLv3
  34. CREDITS
  35. CREDITS.chromium
  36. ffmpeg.c
  37. ffmpeg.h
  38. ffmpeg_cuvid.c
  39. ffmpeg_dxva2.c
  40. ffmpeg_filter.c
  41. ffmpeg_generated.gni
  42. ffmpeg_opt.c
  43. ffmpeg_options.gni
  44. ffmpeg_qsv.c
  45. ffmpeg_vaapi.c
  46. ffmpeg_vdpau.c
  47. ffmpeg_videotoolbox.c
  48. ffmpegsumo.ver
  49. ffplay.c
  50. ffprobe.c
  51. ffserver.c
  52. ffserver_config.c
  53. ffserver_config.h
  54. INSTALL.md
  55. library.mak
  56. LICENSE.md
  57. MAINTAINERS
  58. Makefile
  59. OWNERS
  60. PRESUBMIT.py
  61. README.chromium
  62. README.md
  63. RELEASE
  64. version.sh
  65. xcode_hack.c
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.
  • 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.