-
- Downloads
Deprecate avcodec_thread_init()
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. Signed-off-by:Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit c0b102ca)
Showing
- doc/APIchanges 4 additions, 0 deletionsdoc/APIchanges
- ffmpeg.c 3 additions, 8 deletionsffmpeg.c
- ffplay.c 1 addition, 1 deletionffplay.c
- libavcodec/avcodec.h 7 additions, 1 deletionlibavcodec/avcodec.h
- libavcodec/pthread.c 3 additions, 3 deletionslibavcodec/pthread.c
- libavcodec/thread.h 3 additions, 0 deletionslibavcodec/thread.h
- libavcodec/utils.c 17 additions, 3 deletionslibavcodec/utils.c
- libavcodec/w32thread.c 4 additions, 4 deletionslibavcodec/w32thread.c
Loading
Please register or sign in to comment