1) avoid useless mutex lock, 2) avoid throw exception frequently
use MACRO
Merge branch 'master' of https://github.com/nxtreaming/FFmpegAndroid