Lines Matching defs:copy
14 * You should have received a copy of the GNU Lesser General Public
793 AVCodecContext *copy;
798 copy = av_memdup(avctx, sizeof(*avctx));
799 if (!copy)
801 copy->priv_data = NULL;
808 p->avctx = copy;
810 copy->internal = av_mallocz(sizeof(*copy->internal));
811 if (!copy->internal)
813 copy->internal->thread_ctx = p;
815 copy->delay = avctx->delay;
818 copy->priv_data = av_mallocz(codec->priv_data_size);
819 if (!copy->priv_data)
823 *(const AVClass **)copy->priv_data = codec->p.priv_class;
824 err = av_opt_copy(copy->priv_data, avctx->priv_data);
837 copy->internal->last_pkt_props = p->avpkt;
840 copy->internal->is_copy = 1;
843 err = codec->init(copy);
853 update_context_from_thread(avctx, copy, 1);
855 atomic_init(&p->debug_threads, (copy->debug & FF_DEBUG_THREADS) != 0);