I'm getting an invalid option result from avcodec_open2
in ffmpeg 3.1.6 with libopus 1.1.4. I've sorted through all the options and I cannot locate the offending option, I created a gist holding the relevant native code. I've searched all about the internet and cannot find anything helpful as of yet. I've also tried with and without the opts dictionary.
results = avcodec_open2(context, codec, &opts);
and
results = avcodec_open2(context, codec, 0);
All tests and variations return -22
(at line 51 in gist)