Support newer libavcodec