[FFmpeg-devel] [PATCH 2/3] Deprecate avcodec_thread_init()

Ronald S. Bultje rsbultje
Wed Feb 9 13:55:48 CET 2011


Hi,

On Mon, Feb 7, 2011 at 9:15 PM, Alexander Strange <astrange at ithinksw.com> wrote:
> 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() will be removed from avcodec.h at the same time; there
> is no need to mark it deprecated as clients already had no reason to call it.
>
> Rename the functions to ff_thread_init/free, since they are now internal.
> Wrappers are provided to maintain API compatibility.
> ---
> ?doc/APIchanges ? ? ? ? | ? ?4 ++++
> ?ffmpeg.c ? ? ? ? ? ? ? | ? 11 +++--------
> ?ffplay.c ? ? ? ? ? ? ? | ? ?2 +-
> ?libavcodec/avcodec.h ? | ? ?8 +++++++-
> ?libavcodec/pthread.c ? | ? ?6 +++---
> ?libavcodec/thread.h ? ?| ? ?3 +++
> ?libavcodec/utils.c ? ? | ? 20 +++++++++++++++++---
> ?libavcodec/w32thread.c | ? ?8 ++++----
> ?8 files changed, 42 insertions(+), 20 deletions(-)

Queued.

Ronald



More information about the ffmpeg-devel mailing list