summaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-20 17:21:39 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-21 07:22:23 +0200
commit65af48b55930abe5ac9130be3ff4d9c287a7f010 (patch)
treeb713e980efde65987d71bf9b6433411d400d633f /libavcodec/utils.c
parent095290f9a4230698f64c56b5ee9d89c046f6dd5b (diff)
downloadffmpeg-streaming-65af48b55930abe5ac9130be3ff4d9c287a7f010.zip
ffmpeg-streaming-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 0190e66..744e0ad 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
OpenPOWER on IntegriCloud