Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef VDPAU_SUPPORT_HWACCEL
- pCodecCtx->opaque = pCtx;
- pCodecCtx->get_format = &get_format;
- pCodecCtx->get_buffer2 = &get_buffer;
- pCodecCtx->thread_safe_callbacks = 1;
- if (!av_dict_get(pCtx->decoder_opts, "threads", NULL, 0))
- av_dict_set(&pCtx->decoder_opts, "threads", "auto", 0);
- avcodec_open2(pCtx->pCodecCtx, pCodec, &pCtx->decoder_opts);
- #else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement