Always call avcodec_thread_init()
authorMåns Rullgård <mans@mansr.com>
Wed, 20 Jan 2010 22:55:50 +0000 (22:55 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 20 Jan 2010 22:55:50 +0000 (22:55 +0000)
commit68cf92ee5e08331d6237a836adc74b4007fab4e9
tree940d14641a23b82d9953953457338b1e9d2e11eb
parent5fcb865b7525f4ba6d601008bc6a2fb28be5af1e
Always call avcodec_thread_init()

The various avcodec_thread_init() functions are updated to return
immediately after setting avctx->thread_count.  This allows -threads 0
to pass through to codecs.  It also simplifies the usage for apps
using libavcodec.

Originally committed as revision 21358 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
ffplay.c
libavcodec/beosthread.c
libavcodec/os2thread.c
libavcodec/pthread.c
libavcodec/w32thread.c