Replace lib.av_get_media_type_string for libav