mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 14:24:26 +08:00
Frame-based multithreading framework using pthreads
See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:

committed by
Michael Niedermayer

parent
8a278ad30d
commit
b38f008ea6
@@ -129,7 +129,13 @@ int avcodec_thread_init(AVCodecContext *s, int thread_count){
|
||||
ThreadContext *c;
|
||||
uint32_t threadid;
|
||||
|
||||
if(!(s->thread_type & FF_THREAD_SLICE)){
|
||||
av_log(s, AV_LOG_WARNING, "The requested thread algorithm is not supported with this thread library.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
s->thread_count= thread_count;
|
||||
s->active_thread_type= FF_THREAD_SLICE;
|
||||
|
||||
if (thread_count <= 1)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user