As many of you have noticed, version 1.8.6 introduces libavcodec dependency. Because of the bug in MakeMKV OSS code, you can get the following error during compilation:
Code: Select all
libffabi/src/ffabi.c:166:15: error: ‘AVCodecContext’ has no member named ‘refcounted_frames’
- Open the file "libffabi/src/ffabi.c" in editor of your choice
- Delete or comment out the lines 166 and 321. Both should contain the code snippet below
- Save the file, try to compile again.
- If it works, please reply in this thread with a version of libavcodec that you have (find libavcodec.h and issue "cat version.h" from the same dir)
Code to be deleted (two places in ffabi.c) :
Code: Select all
#if (LIBAVCODEC_VERSION_MAJOR >= 54)
ctx->avctx->refcounted_frames = 1;
#endif