fftools/ffmpeg: fix mixed code and declarations