diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-20 17:21:39 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-21 07:22:23 +0200 |
commit | 65af48b55930abe5ac9130be3ff4d9c287a7f010 (patch) | |
tree | b713e980efde65987d71bf9b6433411d400d633f /libavcodec/utils.c | |
parent | 095290f9a4230698f64c56b5ee9d89c046f6dd5b (diff) | |
download | ffmpeg-65af48b55930abe5ac9130be3ff4d9c287a7f010.tar.gz |
lavc: provide deprecated avcodec_thread_init until next major version
It was deprecated only recently.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0190e6652c..744e0ada87 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1220,3 +1220,11 @@ void ff_thread_await_progress(AVFrame *f, int progress, int field) } #endif + +#if FF_API_THREAD_INIT +int avcodec_thread_init(AVCodecContext *s, int thread_count) +{ + s->thread_count = thread_count; + return ff_thread_init(s); +} +#endif |