[libav-commits] lavc: remove disabled FF_API_THREAD_INIT cruft.

Anton Khirnov git at libav.org
Fri Jan 27 10:47:46 CET 2012


Module: libav
Branch: master
Commit: 9a79bb552a518f26bec1b5306a03b76076bcf8eb

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Sun Jan 22 10:56:42 2012 +0100

lavc: remove disabled FF_API_THREAD_INIT cruft.

---

 libavcodec/avcodec.h |    8 --------
 libavcodec/utils.c   |    8 --------
 libavcodec/version.h |    3 ---
 3 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 38df95f..778b328 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3726,14 +3726,6 @@ void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
 
 enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat * fmt);
 
-#if FF_API_THREAD_INIT
-/**
- * @deprecated Set s->thread_count before calling avcodec_open2() instead of calling this.
- */
-attribute_deprecated
-int avcodec_thread_init(AVCodecContext *s, int thread_count);
-#endif
-
 int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size);
 int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2, int, int),void *arg, int *ret, int count);
 //FIXME func typedef
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index bcdb71a..7f8009d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1810,14 +1810,6 @@ 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
-
 enum AVMediaType avcodec_get_type(enum CodecID codec_id)
 {
     if (codec_id <= CODEC_ID_NONE)
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 77c512c..7b2bd18 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -41,9 +41,6 @@
 #ifndef FF_API_REQUEST_CHANNELS
 #define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
 #endif
-#ifndef FF_API_THREAD_INIT
-#define FF_API_THREAD_INIT      (LIBAVCODEC_VERSION_MAJOR < 54)
-#endif
 #ifndef FF_API_OLD_FF_PICT_TYPES
 #define FF_API_OLD_FF_PICT_TYPES (LIBAVCODEC_VERSION_MAJOR < 54)
 #endif



More information about the libav-commits mailing list