diff options
author | Alexander Strange <astrange@ithinksw.com> | 2011-02-07 21:15:45 -0500 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-09 09:17:28 -0500 |
commit | c0b102ca03fe92250f1ce620aec3836f529fc1d6 (patch) | |
tree | 1087a645990e02587a8c92c7d4298c25b3c4f55b /ffplay.c | |
parent | 8e8cc52be3b515bc91cd9452daca7a65feaea5ad (diff) | |
download | ffmpeg-streaming-c0b102ca03fe92250f1ce620aec3836f529fc1d6.zip ffmpeg-streaming-c0b102ca03fe92250f1ce620aec3836f529fc1d6.tar.gz |
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2260,7 +2260,7 @@ static int stream_component_open(VideoState *is, int stream_index) avctx->skip_loop_filter= skip_loop_filter; avctx->error_recognition= error_recognition; avctx->error_concealment= error_concealment; - avcodec_thread_init(avctx, thread_count); + avctx->thread_count= thread_count; set_context_opts(avctx, avcodec_opts[avctx->codec_type], 0, codec); |