decoder/ffmpeg: move code to lib/ffmpeg/Init.cxx
input/ffmpeg: use FfmpegInit() instead of av_register_all()

Make sure that the log callback is installed.