]> git.sesse.net Git - ffmpeg/commit
pthread_frame: change the criterium for updating thread contexts
authorAnton Khirnov <anton@khirnov.net>
Tue, 9 Jun 2020 11:08:49 +0000 (13:08 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 7 Jul 2020 09:03:09 +0000 (11:03 +0200)
commitf1feb3bd9dbff6e15ee9f981d79d353ffdc15c0b
tree2cfebe6f5686018696627603308dcb24008315ce
parent7321614a1b29ba4e92b47c5786a1739baaa25f9b
pthread_frame: change the criterium for updating thread contexts

Currently the next thread's context is updated from the previous one's
if the codec descriptor is not marked as intra-only. That is not
entirely correct, since that property does not necessarily imply
anything about how a specific decoder implementation behaves.

Instead, use the presence of the update_thread_context() callback to
decide whether an update should be performed. Fixes races in CFHD,
should cause no behaviour change in any other decoders.
libavcodec/pthread_frame.c