summaryrefslogtreecommitdiff
path: root/libavcodec/thread.h
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2011-03-29 17:18:21 -0400
committerJanne Grunau <janne-libav@jannau.net>2011-04-05 16:53:26 +0200
commitba9ef8d04ecd009036b7c380e71bac081c56c53e (patch)
tree64992160a7850a4be6ce614caa706ae1a6d852e8 /libavcodec/thread.h
parentd6f66edd65992c1275f8e4271be212e1a4808425 (diff)
Remove unnecessary parameter from ff_thread_init() and fix behavior
thread_count passed to ff_thread_init() is only used to set AVCodecContext. thread_count, and can be removed. Instead move it to the legacy implementation of avcodec_thread_init(). This also fixes the problem that calling avcodec_thread_init() with pthreads enabled did not set it since ff1efc524cb3c60f2f746e3b4550bb1a86c65316. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Diffstat (limited to 'libavcodec/thread.h')
-rw-r--r--libavcodec/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/thread.h b/libavcodec/thread.h
index e63c10a5e4..401c4d25a8 100644
--- a/libavcodec/thread.h
+++ b/libavcodec/thread.h
@@ -108,7 +108,7 @@ int ff_thread_get_buffer(AVCodecContext *avctx, AVFrame *f);
*/
void ff_thread_release_buffer(AVCodecContext *avctx, AVFrame *f);
-int ff_thread_init(AVCodecContext *s, int thread_count);
+int ff_thread_init(AVCodecContext *s);
void ff_thread_free(AVCodecContext *s);
#endif /* AVCODEC_THREAD_H */