swap out deprecated libavcodec functions

Gets rid of compile-time deprecation warnings