FFmpeg 3.3 release
pthread_frame: make accesses to debug field be protected by owner lock.

The av_log() is done outside the lock, but this way the accesses to the
field (reads and writes) are always protected by a mutex. The av_log()
is not run inside the lock context because it may involve user callbacks
and doing that in performance-sensitive code is probably not a good idea.

This should fix occasional tsan warnings when running fate-h264, like:

WARNING: ThreadSanitizer: data race (pid=10916)
  Write of size 4 at 0x7d64000174fc by main thread (mutexes: write M2313):
    #0 update_context_from_user src/libavcodec/pthread_frame.c:335 (ffmpeg+0x000000df7b06)
[..]
  Previous read of size 4 at 0x7d64000174fc by thread T1 (mutexes: write M2311):
    #0 ff_thread_await_progress src/libavcodec/pthread_frame.c:592 (ffmpeg+0x000000df8b3e)

(cherry picked from commit 2e664b9c1e73c80aab91070c1eb7676f04bdd12d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 file changed
tree: 0a470f8f550764b0df0044c091a5162f7850b391
  1. compat/
  2. doc/
  3. libavcodec/
  4. libavdevice/
  5. libavfilter/
  6. libavformat/
  7. libavresample/
  8. libavutil/
  9. libpostproc/
  10. libswresample/
  11. libswscale/
  12. presets/
  13. tests/
  14. tools/
  15. .gitattributes
  16. .gitignore
  17. .travis.yml
  18. arch.mak
  19. Changelog
  20. cmdutils.c
  21. cmdutils.h
  22. cmdutils_common_opts.h
  23. cmdutils_opencl.c
  24. common.mak
  25. configure
  26. CONTRIBUTING.md
  27. COPYING.GPLv2
  28. COPYING.GPLv3
  29. COPYING.LGPLv2.1
  30. COPYING.LGPLv3
  31. CREDITS
  32. ffmpeg.c
  33. ffmpeg.h
  34. ffmpeg_cuvid.c
  35. ffmpeg_dxva2.c
  36. ffmpeg_filter.c
  37. ffmpeg_opt.c
  38. ffmpeg_qsv.c
  39. ffmpeg_vaapi.c
  40. ffmpeg_vdpau.c
  41. ffmpeg_videotoolbox.c
  42. ffplay.c
  43. ffprobe.c
  44. ffserver.c
  45. ffserver_config.c
  46. ffserver_config.h
  47. INSTALL.md
  48. library.mak
  49. LICENSE.md
  50. MAINTAINERS
  51. Makefile
  52. README.md
  53. RELEASE
  54. RELEASE_NOTES
  55. version.sh
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.