As a side effect of the last commit, avcodec_open() now calls it automatically, so there is no longer any need for clients to call it. Instead they should set AVCodecContext.thread_count. avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the next MAJOR libavcodec bump. Rename the functions to ff_thread_init/free, since they are now internal. Wrappers are provided to maintain API compatibility.
Showing the changes to doc/APIchanges (1 of 8 files). Show all
Unified · Split
| @@ -13,6 +13,10 @@ libavutil: 2009-03-08 · 12 unmodified lines | |||
| 13 | 13 | ||
| 14 | API changes, most recent first: | 14 | API changes, most recent first: |
| 15 | 15 | ||
| 16 | 2011-02-09 - XXXXXXX - lavc 52.112.0 - avcodec_thread_init() | ||
| 17 | Deprecate avcodec_thread_init()/avcodec_thread_free() use; instead | ||
| 18 | set thread_count before calling avcodec_open. | ||
| 19 | |||
| 16 | 2011-02-09 - 778b08a - lavc 52.111.0 - threading API | 20 | 2011-02-09 - 778b08a - lavc 52.111.0 - threading API |
| 17 | Add CODEC_CAP_FRAME_THREADS with new restrictions on get_buffer()/ | 21 | Add CODEC_CAP_FRAME_THREADS with new restrictions on get_buffer()/ |
| 18 | release_buffer()/draw_horiz_band() callbacks for appropriate codecs. | 22 | release_buffer()/draw_horiz_band() callbacks for appropriate codecs. |