h264dec: handle zero-sized NAL units in get_last_needed_nal()

The current code will ignore the init_get_bits() failure and do an
invalid read from the uninitialized GetBitContext.

BUG=690184

Change-Id: I2e075ac19f1e5d99f2c1c57f844dea0275c93bcd
Found-By: Jan Ruge <jan.s.ruge at gmail.com>
Bug-Id: 952
Reviewed-on: https://chromium-review.googlesource.com/441113
Reviewed-by: Fredrik Hubinette <hubbe@chromium.org>
1 file changed
tree: bfb14e1bbec5e9cb6b2f0eda1c74118b6be4d053
  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.