ffmpeg: call term_init() earlier