[FFmpeg-devel] [PATCH] pthread_frame: make accesses to debug field be protected by owner lock.

Kieran Kunhya kierank at obe.tv
Thu Apr 6 21:07:13 EEST 2017


On Thu, 6 Apr 2017 at 18:48 Ronald S. Bultje <rsbultje at gmail.com> wrote:

> 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:
>

Looks fine.

Kieran


More information about the ffmpeg-devel mailing list