Lines Matching refs:thread_avctx
184 AVCodecContext *thread_avctx = avcodec_alloc_context3(avctx->codec);
185 if(!thread_avctx)
187 tmpv = thread_avctx->priv_data;
188 *thread_avctx = *avctx;
189 thread_avctx->priv_data = tmpv;
190 thread_avctx->internal = NULL;
191 memcpy(thread_avctx->priv_data, avctx->priv_data, avctx->codec->priv_data_size);
192 thread_avctx->thread_count = 1;
193 thread_avctx->active_thread_type &= ~FF_THREAD_FRAME;
197 if(avcodec_open2(thread_avctx, avctx->codec, &tmp) < 0) {
202 av_assert0(!thread_avctx->internal->frame_thread_encoder);
203 thread_avctx->internal->frame_thread_encoder = c;
204 if(pthread_create(&c->worker[i], NULL, worker, thread_avctx)) {