[FFmpeg-devel] pthread: fixed thread initialization with default buffer allocator
anatoliy.wasserman at yandex.ua
Wed Dec 7 23:43:11 CET 2011
'thread_safe_callbacks' field was not propagated to the main context --> in ffplay buffer allocation always happened in main thread
early 'ff_thread_finish_setup' happened only if codec doesn't provide 'update_thread_context' and defines 'thread_safe_callbacks', however check for 'avcodec_default_get_buffer' was left out.
sanity check again checks only for 'update_thread_context' and 'thread_safe_callbacks' but not 'avcodec_default_get_buffer'.
with the fixes above call for 'ff_thread_finish_setup' is redundant and not needed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2293 bytes
Desc: not available
More information about the ffmpeg-devel