I tried to decode video using FFMpeg library from the sample examples available on internet, i figure it out with new version of ffmpeg, here is the code which I called from
I think you built FFmpeg with compiler options not suitable for Android.
I would recommend to follow android-ffmpeg-tutorial, it has working example for FFmpeg on Android. It has reference to article about building FFmpeg for Android as well.
You also may want to have a look at much more advanced Android code with FFmpeg player AndroidFFmpeg, it works OK even in Genymotion emulator, I tested. Detailed instructions how to build, worked from the box.
Your code uses deprecated FFmpeg calls, code from the links above was updated for that matter.