There is a bug here, please update it when you request an update. https://github.com/FFmpeg/FFmpeg/blob/61afe4d98ce62d9dfc6f0548e18730ba2f621cc2/libavformat/file.c#L531 The correct result should be #include "libavcodec/ffjni.h" From Android AliMail