avcodec_free_frame seems to have wider support
Directly specifying the FreeImage filetype caused problems on Gentoo