ref: 6d05c91f1653112db5f0a15eb646d986a4dc2dda
parent: 494fe105ce03c2287153d70a4ce7741620705ad5
author: Sigrid Haflínudóttir <[email protected]>
date: Mon Sep 21 11:39:08 EDT 2020
vpx: enable parallel decoding
--- a/decoder_vpx.c
+++ b/decoder_vpx.c
@@ -81,11 +81,12 @@
{
Aux *a;
vpx_codec_iface_t *iface;
+ vpx_codec_dec_cfg_t cfg = {nproc, 0, 0};
a = calloc(1, sizeof(*a));
iface = d->s->fmt == FmtVP9 ? vpx_codec_vp9_dx() : vpx_codec_vp8_dx();
- if(vpx_codec_dec_init(&a->ctx, iface, nil, 0) != 0){
+ if(vpx_codec_dec_init(&a->ctx, iface, &cfg, 0) != 0){
werrstr("vpx_codec_dec_init failed");
free(a);
return -1;