OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef669c
)
Fix build with threading disabled
author
Mans Rullgard
<mans@mansr.com>
Wed, 9 Feb 2011 20:15:25 +0000
(20:15 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Wed, 9 Feb 2011 20:52:28 +0000
(20:52 +0000)
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>
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
0816b39
..
03018b8
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-1297,7
+1297,9
@@
int avcodec_thread_init(AVCodecContext *s, int thread_count)
void avcodec_thread_free(AVCodecContext *s)
{
+#if HAVE_THREADS
return ff_thread_free(s);
+#endif
}
#endif