comparison utils.c @ 9545:59073f92f0e2 libavcodec

Make avcodec_thread_init() set the thread count, even in the case when threads support is not enabled. This should avoid the need for thread_count explicit setting in applications.
author stefano
date Thu, 23 Apr 2009 23:14:26 +0000
parents f522c8e05a29
children bc32976d6d9d
comparison
equal deleted inserted replaced
9544:e5afd314bd14 9545:59073f92f0e2
983 } 983 }
984 } 984 }
985 985
986 #if !HAVE_THREADS 986 #if !HAVE_THREADS
987 int avcodec_thread_init(AVCodecContext *s, int thread_count){ 987 int avcodec_thread_init(AVCodecContext *s, int thread_count){
988 s->thread_count = thread_count;
988 return -1; 989 return -1;
989 } 990 }
990 #endif 991 #endif
991 992
992 unsigned int av_xiphlacing(unsigned char *s, unsigned int v) 993 unsigned int av_xiphlacing(unsigned char *s, unsigned int v)