swap out deprecated libavcodec functions