forked from FFmpeg/FFmpeg
Fix build with threading disabled
The avcodec_thread_free() compatibility wrapper calls ff_thread_free(), which is not defined when threading is disabled. Make this call conditional. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
aef669cdfd
commit
9a77a92c2b
1 changed files with 2 additions and 0 deletions
|
@ -1297,7 +1297,9 @@ int avcodec_thread_init(AVCodecContext *s, int thread_count)
|
||||||
|
|
||||||
void avcodec_thread_free(AVCodecContext *s)
|
void avcodec_thread_free(AVCodecContext *s)
|
||||||
{
|
{
|
||||||
|
#if HAVE_THREADS
|
||||||
return ff_thread_free(s);
|
return ff_thread_free(s);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue