OSDN Git Service

pthreads: Fix bug introduced with thread_safe_callbacks
authorAlexander Strange <astrange@ithinksw.com>
Thu, 17 Feb 2011 08:25:00 +0000 (03:25 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Mar 2011 13:15:02 +0000 (14:15 +0100)
commit05fa64a7c5191a8fa1d02295d84ff0b6fe842cb8
tree2a9aa41d1c55539e7afaebef665bf2682dc591b6
parent1b4580d1a2a09856a47a2d4f77ac7facff79baf8
pthreads: Fix bug introduced with thread_safe_callbacks

For intra codecs, ff_thread_finish_setup() is called before decoding starts
automatically. However, get_buffer can only be used before it's called, so
adding this requirement broke frame threading for them. Fixed by moving the
call until after get_buffer is finished.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit ad9791e12b6653a465803062e2543f25916300d3)
libavcodec/pthread.c